File tree Expand file tree Collapse file tree 3 files changed +2889
-70
lines changed
Expand file tree Collapse file tree 3 files changed +2889
-70
lines changed Original file line number Diff line number Diff line change 1212
1313 strategy :
1414 matrix :
15- node-version : [18.x, 20 .x]
15+ node-version : [22 .x]
1616
1717 steps :
1818 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
4+ workflow_run :
5+ workflows : ["CI"]
6+ types :
7+ - completed
58 branches :
69 - main
710 workflow_dispatch :
1417concurrency : ${{ github.workflow }}-${{ github.ref }}
1518
1619jobs :
17- build-test :
18- name : Build and Test
19- runs-on : ubuntu-latest
20- steps :
21- - name : Checkout Repo
22- uses : actions/checkout@v4
23-
24- - name : Setup pnpm
25- uses : pnpm/action-setup@v3
26- with :
27- version : 8
28-
29- - name : Setup Node.js
30- uses : actions/setup-node@v4
31- with :
32- node-version : 20
33- cache : ' pnpm'
34- registry-url : ' https://registry.npmjs.org'
35-
36- - name : Install Dependencies
37- run : pnpm install
38-
39- - name : Lint
40- run : pnpm lint
41-
42- - name : Type Check
43- run : pnpm typecheck
44-
45- - name : Test
46- run : pnpm test
47-
48- - name : Build
49- run : pnpm build
50-
5120 release :
5221 name : Release
53- needs : build-test
5422 runs-on : ubuntu-latest
23+ # Only run if CI workflow succeeded
24+ if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
5525 steps :
5626 - name : Checkout Repo
5727 uses : actions/checkout@v4
6737 - name : Setup Node.js
6838 uses : actions/setup-node@v4
6939 with :
70- node-version : 20
40+ node-version : 22
7141 cache : ' pnpm'
7242 registry-url : ' https://registry.npmjs.org'
7343
8555 publish : pnpm changeset publish
8656 commit : ' chore(release): version packages'
8757 title : ' chore(release): version packages'
88- ${{ inputs.force_publish && 'createGithubReleases : false' || '' }}
8958 env :
9059 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9160 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments