Skip to content

Commit 2d1e84b

Browse files
committed
wip
1 parent 7e1019b commit 2d1e84b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/check-npm-token-permissions.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,16 @@ jobs:
1616
with:
1717
node-version: 18
1818
registry-url: 'https://registry.npmjs.org/'
19-
20-
19+
2120
- name: Configure npm authentication
2221
run: |
23-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
22+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2423
2524
- run: npm whoami --registry=https://registry.npmjs.org/ || echo "Not authenticated"
2625

2726
- name: List Packages I can access
2827
run: |
2928
npm access list packages
3029
31-
- name: Check NPM Authentication
32-
env:
33-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
run: |
35-
curl -H "Authorization: Bearer ${NPM_TOKEN}" https://registry.npmjs.org/-/whoami || echo "Authentication failed"
3630
3731

0 commit comments

Comments
 (0)