-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (44 loc) · 1.15 KB
/
on-push-to-main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
verify:
name: Verify
uses: ./.github/workflows/reusable-verify.yaml
secrets: inherit
docs:
name: Documentation
uses: ./.github/workflows/reusable-docs.yaml
secrets: inherit
permissions:
pages: write
id-token: write
changesets:
name: Changesets
if: github.repository_owner == 'enzymefinance'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Manage changesets
uses: changesets/action@v1
with:
publish: pnpm release
commit: "chore: publish package(s)"
title: "chore: publish package(s)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}