Skip to content

Commit 66041e1

Browse files
committed
wip
1 parent 9dfca9c commit 66041e1

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
@@ -11,6 +11,10 @@ jobs:
1111
- name: Checkout repository
1212
uses: actions/checkout@v4
1313

14+
- name: Configure npm authentication
15+
run: |
16+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
17+
1418
- name: Set up Node.js
1519
uses: actions/setup-node@v4
1620
with:
@@ -21,9 +25,6 @@ jobs:
2125
run: |
2226
curl -H "Authorization: Bearer ${{ secrets.NPM_TOKEN}}" https://registry.npmjs.org/-/whoami
2327
24-
- name: Configure npm authentication
25-
run: |
26-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2728
2829
- name: List Packages I can access
2930
run: |

0 commit comments

Comments
 (0)