Skip to content

Commit 87f3667

Browse files
committed
wip
1 parent 2d1e84b commit 87f3667

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616
with:
1717
node-version: 18
1818
registry-url: 'https://registry.npmjs.org/'
19-
19+
- name: Check NPM Authentication
20+
run: |
21+
curl -H "Authorization: Bearer ${{ secrets.NPM_TOKEN}}" https://registry.npmjs.org/-/whoami || echo "Authentication failed"
22+
2023
- name: Configure npm authentication
2124
run: |
2225
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

0 commit comments

Comments
 (0)