File tree Expand file tree Collapse file tree 1 file changed +7
-41
lines changed
Expand file tree Collapse file tree 1 file changed +7
-41
lines changed Original file line number Diff line number Diff line change 11name : Release packages
22
33on :
4- workflow_run :
5- workflows : ['Run tests']
6- types :
7- - completed
8-
4+ push :
5+ branches :
6+ - main
7+ - next
98env :
109 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
1110
1211jobs :
13- release-main :
14- runs-on : ${{ matrix.os }}
15- strategy :
16- matrix :
17- node : ['18.x']
18- os : [ubuntu-latest]
19-
20- if : >
21- ${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success' }}
22-
23- steps :
24- - uses : actions/checkout@v4
25- - uses : pnpm/action-setup@v2
26- - uses : actions/setup-node@v4
27- with :
28- node-version : ${{ matrix.node }}
29- cache : ' pnpm'
30- - run : pnpm install --frozen-lockfile
31- - uses : changesets/action@v1
32- with :
33- publish : pnpm release
34- version : pnpm changeset:version
35- env :
36- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
38-
39- release-next :
40- runs-on : ${{ matrix.os }}
41- strategy :
42- matrix :
43- node : ['18.x']
44- os : [ubuntu-latest]
45-
46- if : >
47- ${{ github.ref == 'refs/heads/next' && github.event.workflow_run.conclusion == 'success' }}
12+ release :
13+ runs-on : ubuntu-latest
4814
4915 steps :
5016 - uses : actions/checkout@v4
5117 - uses : pnpm/action-setup@v2
5218 - uses : actions/setup-node@v4
5319 with :
54- node-version : ${{ matrix.node }}
20+ node-version : ' 18.x '
5521 cache : ' pnpm'
5622 - run : pnpm install --frozen-lockfile
5723 - uses : changesets/action@v1
You can’t perform that action at this time.
0 commit comments