We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ddd880 commit f734e69Copy full SHA for f734e69
.github/workflows/check-npm-token-permissions.yml
@@ -16,6 +16,10 @@ jobs:
16
node-version: 18
17
registry-url: "https://registry.npmjs.org"
18
19
+ - name: Check NPM Authentication
20
+ run: |
21
+ curl -H "Authorization: Bearer ${{ secrets.NPM_TOKEN}}" https://registry.npmjs.org/-/whoami || echo "Authentication failed"
22
+
23
- name: Configure npm authentication
24
run: |
25
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
@@ -24,9 +28,6 @@ jobs:
28
29
curl -H "Authorization: Bearer ${{ secrets.NPM_TOKEN}}" https://registry.npmjs.org/-/whoami || echo "Authentication failed"
26
30
27
- - name: Configure npm authentication
- run: |
- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31
32
- run: npm whoami
33
0 commit comments