Skip to content

Commit 3d0b902

Browse files
author
Wilson
committed
Update GitHub Actions workflow to configure npm authentication and access before publishing
1 parent 3a1c2da commit 3d0b902

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ jobs:
2323
- name: Build
2424
run: npm run build
2525

26+
- name: Configure npm
27+
run: |
28+
npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN}
29+
npm config set access public
30+
2631
- name: Publish to npm
27-
run: npm publish --access public
32+
run: npm publish
2833
env:
2934
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)