File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments