Skip to content

Commit 6a9823f

Browse files
committed
fix: Make npm token global in workflow
1 parent 6b41fad commit 6a9823f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
12+
env:
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1214

1315
steps:
1416
- name: Checkout latest code
@@ -32,6 +34,4 @@ jobs:
3234
run: npm run test
3335

3436
- name: Publish
35-
env:
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3737
run: npm publish

0 commit comments

Comments
 (0)