Skip to content

Commit a8d5e15

Browse files
authored
Update publish-to-npm.yaml
1 parent 7bc8bcb commit a8d5e15

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/publish-to-npm.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,20 @@ jobs:
2727
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2828
registry-url: "https://registry.npmjs.org"
2929
scope: "@intersect.mbo"
30-
run: echo "Authentication successful"
30+
run: |
31+
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
32+
npm config set scope "@intersect.mbo"
33+
npm whoami
3134
3235
- name: Check NPM Authentication
33-
env:
34-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3536
run: npm whoami
3637

3738
- name: Install dependencies
3839
run: npm ci
3940
env:
40-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4141
NODE_OPTIONS: --max_old_space_size=8192
4242

4343
- name: Publish to npm
44-
run: npm publish
44+
run: npm publish --access restricted
4545
env:
46-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4746
NODE_OPTIONS: --max_old_space_size=8192

0 commit comments

Comments
 (0)