Skip to content

Commit 8b9e046

Browse files
committed
build(release): update release event
1 parent e32358e commit 8b9e046

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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

0 commit comments

Comments
 (0)