Skip to content

Commit 50a8642

Browse files
committed
chore: update publish build
1 parent 7dade5f commit 50a8642

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/Publish.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ jobs:
3535
run: yarn build
3636

3737
- name: Set up NPM auth
38-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/dist/.npmrc
38+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
3939

4040
- name: Publish on npm.js
41-
run: cd dist && npm publish --access public
42-
env:
43-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
41+
run: npm publish --access public
42+
working-directory: ./dist

0 commit comments

Comments
 (0)