Skip to content

Commit f734e69

Browse files
committed
wip
1 parent 5ddd880 commit f734e69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
node-version: 18
1717
registry-url: "https://registry.npmjs.org"
1818

19+
- name: Check NPM Authentication
20+
run: |
21+
curl -H "Authorization: Bearer ${{ secrets.NPM_TOKEN}}" https://registry.npmjs.org/-/whoami || echo "Authentication failed"
22+
1923
- name: Configure npm authentication
2024
run: |
2125
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
@@ -24,9 +28,6 @@ jobs:
2428
run: |
2529
curl -H "Authorization: Bearer ${{ secrets.NPM_TOKEN}}" https://registry.npmjs.org/-/whoami || echo "Authentication failed"
2630
27-
- name: Configure npm authentication
28-
run: |
29-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
3031
3132
- run: npm whoami
3233

0 commit comments

Comments
 (0)