File tree Expand file tree Collapse file tree 3 files changed +24
-37
lines changed
Expand file tree Collapse file tree 3 files changed +24
-37
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ concurrency:
77 group : build-${{ github.ref_name }}
88 cancel-in-progress : true
99
10+ permissions :
11+ contents : write
12+ id-token : write
13+ issues : write
14+
1015jobs :
1116 build :
1217 runs-on : ubuntu-latest
2732 - run : yarn compile
2833 - run : yarn lint
2934 - run : yarn test --forbid-only
35+
36+ deploy :
37+ runs-on : ubuntu-latest
38+ needs : [build]
39+ if : github.ref_name == 'release'
40+
41+ steps :
42+ - uses : actions/checkout@v3
43+ - uses : actions/setup-node@v3
44+ with :
45+ node-version-file : ' .nvmrc'
46+ cache : yarn
47+ - run : yarn install --immutable
48+ - run : yarn build
49+ - run : yarn semantic-release
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Pages
33
44on :
55 workflow_run :
6- workflows : [Release ]
6+ workflows : [Build ]
77 branches : [release]
88 types :
99 - completed
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments