File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 55 types : [created]
66
77jobs :
8- publish :
8+
9+ publish-npm :
910 runs-on : ubuntu-latest
1011 steps :
1112 - uses : actions/checkout@v2
2223 - run : npm whoami; npm --ignore-scripts publish
2324 env :
2425 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
26+
27+ publish-gpr :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v2
2531 - uses : actions/setup-node@v2
2632 with :
33+ node-version : 14
2734 registry-url : https://npm.pkg.github.com/
35+ - run : npm ci
36+ - run : npm run build --if-present
37+ - run : npm test
38+ - run : npm version ${TAG_NAME} --git-tag-version=false
39+ env :
40+ TAG_NAME : ${{ github.event.release.tag_name }}
2841 - run : npm whoami; npm --ignore-scripts publish
2942 env :
3043 NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments