File tree Expand file tree Collapse file tree 1 file changed +8
-24
lines changed Expand file tree Collapse file tree 1 file changed +8
-24
lines changed Original file line number Diff line number Diff line change 7
7
tags-ignore :
8
8
- ' [0-9].[0-9]+.[0-9]+'
9
9
10
+ env :
11
+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
12
+ NPM_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
13
+
14
+ permissions :
15
+ contents : write
16
+
10
17
jobs :
11
18
build :
12
19
name : Build
45
52
run : |
46
53
npm run build
47
54
48
- release :
49
- name : Release
50
- if : github.ref == 'refs/heads/master'
51
- runs-on : ubuntu-latest
52
- needs :
53
- - build
54
- env :
55
- GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
56
- NPM_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
57
- permissions :
58
- contents : write
59
- steps :
60
- - name : Checkout Repo
61
- uses : actions/checkout@v2
62
-
63
- - name : Setup Node
64
- uses : actions/setup-node@v1
65
- with :
66
- node-version : ' 16'
67
-
68
- - name : Install Node Packages
69
- run : |
70
- npm ci --production=false
71
-
72
55
- name : Release
56
+ if : github.ref == 'refs/heads/master'
73
57
run : |
74
58
npx semantic-release
You can’t perform that action at this time.
0 commit comments