Skip to content

Commit cb4d829

Browse files
authored
Update publish-to-npm.yaml
Added npm token check and scoped token
1 parent 688180f commit cb4d829

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ jobs:
2222
registry-url: "https://registry.npmjs.org"
2323
scope: "@intersect.mbo"
2424

25+
- name: Authenticate with NPM
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
NPM_TOKEN_SCOPED: ${{ secrets.NPM_TOKEN }}
29+
run: echo "Authentication successful"
30+
31+
- name: Verify NPM Authentication
32+
run: npm whoami
33+
2534
- name: Install dependencies
2635
run: npm ci
2736
env:

0 commit comments

Comments
 (0)