Skip to content

Commit df0b484

Browse files
committed
Updated npm auth in workflow.
1 parent ae02ffe commit df0b484

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
- name: Build package
3434
run: npm run build
3535

36+
- name: Create .npmrc
37+
run: |
38+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
39+
3640
- name: NPM whoami
3741
run: npm whoami
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4042

4143
- name: Publish package
4244
run: npm publish --workspaces
43-
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)