Skip to content

Commit 99614bc

Browse files
authored
Merge pull request #270 from contentstack/fix/DX-1101
fix: added npm token to github release pipeline
2 parents 9bf0983 + 32adf6b commit 99614bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/npm-publish.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
node-version: '22.x'
2929
registry-url: 'https://npm.pkg.github.com'
3030
scope: '@contentstack'
31-
- run: npm ci
32-
- run: npm publish
3331
env:
3432
NODE_AUTH_TOKEN: ${{ secrets.PAT_TOKEN }}
33+
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.PAT_TOKEN }}" > ~/.npmrc
34+
- run: npm ci --registry=https://npm.pkg.github.com
35+
- run: npm publish --registry=https://npm.pkg.github.com

0 commit comments

Comments
 (0)