Skip to content

Commit 7dade5f

Browse files
committed
chore: update publish
1 parent 9303018 commit 7dade5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/Publish.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
environment: prod
11-
11+
1212
strategy:
1313
matrix:
1414
node-version: [16.x]
@@ -34,6 +34,9 @@ jobs:
3434
- name: Build
3535
run: yarn build
3636

37+
- name: Set up NPM auth
38+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/dist/.npmrc
39+
3740
- name: Publish on npm.js
3841
run: cd dist && npm publish --access public
3942
env:

0 commit comments

Comments
 (0)