File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
13
+ with :
14
+ node-version : 14
15
+ registry-url : https://registry.npmjs.org/
16
+ - run : npm ci
17
+ - run : npm run build --if-present
18
+ - run : npm test
19
+ - run : npm version ${TAG_NAME} --git-tag-version=false
20
+ env :
21
+ TAG_NAME : ${{ github.event.release.tag_name }}
22
+ - run : npm whoami; npm --ignore-scripts publish
23
+ env :
24
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
25
+ - uses : actions/setup-node@v2
26
+ with :
27
+ registry-url : https://npm.pkg.github.com/
28
+ - run : npm whoami; npm --ignore-scripts publish
29
+ env :
30
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments