File tree Expand file tree Collapse file tree 1 file changed +26
-40
lines changed Expand file tree Collapse file tree 1 file changed +26
-40
lines changed Original file line number Diff line number Diff line change 1
1
name : Release @doist/eslint-plugin-doist package
2
2
3
3
on :
4
- release :
5
- types : [created]
4
+ push :
5
+ tags :
6
+ - ' v*'
6
7
7
8
jobs :
8
- build :
9
- runs-on : ubuntu-latest
10
- timeout-minutes : 60
11
- steps :
12
- - uses : actions/checkout@v1
13
- - uses : actions/setup-node@v1
14
- with :
15
- node-version : 12
16
- - run : npm ci
17
- - run : npm test
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ timeout-minutes : 60
12
+ steps :
13
+ - uses : actions/checkout@v2
18
14
19
- publish-npm :
20
- needs : build
21
- runs-on : ubuntu-latest
22
- timeout-minutes : 60
23
- steps :
24
- - uses : actions/checkout@v1
25
- - uses : actions/setup-node@v1
26
- with :
27
- node-version : 12
28
- registry-url : https://registry.npmjs.org/
29
- - run : npm ci
30
- - run : npm publish
31
- env :
32
- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
15
+ # Publish to GitHub package registry
16
+ - uses : actions/setup-node@v1
17
+ with :
18
+ node-version : 12
19
+ registry-url : https://npm.pkg.github.com/
20
+ scope : ' @doist'
21
+ - run : npm publish
22
+ env :
23
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
33
24
34
- publish-gpr :
35
- needs : build
36
- runs-on : ubuntu-latest
37
- timeout-minutes : 60
38
- steps :
39
- - uses : actions/checkout@v1
40
- - uses : actions/setup-node@v1
41
- with :
42
- node-version : 12
43
- registry-url : https://npm.pkg.github.com/
44
- - run : npm ci
45
- - run : npm publish
46
- env :
47
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
25
+ # Publish to npm registry
26
+ - uses : actions/setup-node@v1
27
+ with :
28
+ node-version : 12
29
+ registry-url : https://registry.npmjs.org/
30
+ scope : ' @doist'
31
+ - run : npm publish
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{secrets.NPM_PUBLISH_TOKEN}}
You can’t perform that action at this time.
0 commit comments