Skip to content

Commit 5804431

Browse files
committed
Authenticate with npm in publish workflow
1 parent 2964e97 commit 5804431

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,17 @@ jobs:
6868

6969
- uses: actions/setup-node@v3
7070
with:
71-
node-version: "16"
71+
node-version: 16.x
72+
cache: "npm"
73+
registry-url: "https://npm.pkg.github.com"
7274

7375
- name: Parse version from package.json
7476
run: |
7577
echo "EXT_VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
7678
7779
- run: npm ci
80+
env:
81+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7882

7983
- run: npm run package
8084

0 commit comments

Comments
 (0)