File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1313 node-version : [10.x]
1414
1515 steps :
16- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v2
1717 - name : Use Node.js ${{ matrix.node-version }}
1818 uses : actions/setup-node@v1
1919 with :
@@ -31,11 +31,17 @@ jobs:
3131 uses : ad-m/github-push-action@master
3232 with :
3333 github_token : ${{ secrets.GITHUB_TOKEN_TYPESCRIPTTDD }}
34+ - name : Register Token
35+ run : |
36+ echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc
37+ echo "_auth=$NODE_AUTH_TOKEN" >> /home/runner/work/_temp/.npmrc
38+ echo "email=<[email protected] >" >> /home/runner/work/_temp/.npmrc 39+ echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
3440 - name : Publish
3541 run : |
3642 npm run preparePublish
3743 cd dist
38- npm publish --access public
44+ npm publish
3945 env :
40- NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
46+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
4147
You can’t perform that action at this time.
0 commit comments