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 1
1
name : Release packages
2
2
3
3
on :
4
- workflow_run :
5
- workflows : ['Run tests']
6
- types :
7
- - completed
8
-
4
+ push :
5
+ branches :
6
+ - main
7
+ - next
9
8
env :
10
9
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
11
10
12
11
jobs :
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
48
14
49
15
steps :
50
16
- uses : actions/checkout@v4
51
17
- uses : pnpm/action-setup@v2
52
18
- uses : actions/setup-node@v4
53
19
with :
54
- node-version : ${{ matrix.node }}
20
+ node-version : ' 18.x '
55
21
cache : ' pnpm'
56
22
- run : pnpm install --frozen-lockfile
57
23
- uses : changesets/action@v1
You can’t perform that action at this time.
0 commit comments