Skip to content

Commit 07011f3

Browse files
authored
Add NPM token to publish workflow
1 parent bc92976 commit 07011f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Install Node
8181
uses: actions/setup-node@v4
8282
with:
83-
node-version: 20
83+
node-version: 22
8484
cache: "npm"
8585

8686
- name: Install dependencies
@@ -90,6 +90,7 @@ jobs:
9090
run: npm publish --provenance --access public
9191
env:
9292
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
93+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9394

9495
- name: Prepare the non-scoped packaged
9596
run: |
@@ -102,3 +103,4 @@ jobs:
102103
working-directory: dist
103104
env:
104105
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
106+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)