File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,27 @@ name: Node.js CI
5
5
6
6
on :
7
7
push :
8
- branches : [ master ]
9
- tags : [v*]
8
+ branches :
9
+ - master
10
+ - release-*
11
+ tags :
12
+ - v*
10
13
pull_request :
11
- branches : [ master ]
14
+ branches :
15
+ - master
16
+ - release-*
12
17
13
18
jobs :
14
19
build :
15
20
runs-on : ubuntu-latest
16
-
21
+ env :
22
+ NODE_VER : 10
17
23
steps :
18
24
- uses : actions/checkout@v2
19
25
- name : Use Node.js
20
26
uses : actions/setup-node@v1
21
27
with :
22
- node-version : 10
28
+ node-version : ${{ env.NODE_VER }}
23
29
24
30
- run : npm ci
25
31
env :
@@ -31,16 +37,16 @@ jobs:
31
37
32
38
- name : Is Release?
33
39
if : startswith(github.ref, 'refs/tags/v')
34
- run : echo "##[ set-env name=DEPLOY_PACKAGE;] true"
40
+ run : echo ":: set-env name=DEPLOY_PACKAGE:: true"
35
41
36
42
- name : Publish to npm
37
43
if : env.DEPLOY_PACKAGE == 'true'
38
- run : npm set registry https://registry.npmjs.org/ && npm publish
44
+ run : npm set registry https://registry.npmjs.org/ && npm publish --access public
39
45
env :
40
- NODE_AUTH_TOKEN : ${{secrets.npm_token }}
46
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN }}
41
47
42
48
- name : Publish to github
43
49
if : env.DEPLOY_PACKAGE == 'true'
44
50
run : npm set registry https://npm.pkg.github.com/ && npm publish
45
51
env :
46
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
52
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments