Skip to content

Commit 44d8dfb

Browse files
committed
ci/cd: token integration
1 parent 17cbd6f commit 44d8dfb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
- name: Publish to npm dry-run
3232
if: github.ref == 'refs/heads/master' && github.event_name == 'pull_request'
3333
env:
34-
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
3534
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
run: npm publish:dry-run
35+
run: |
36+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
37+
npm publish --dry-run
3738
3839
- name: Publish to npm
3940
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
4041
env:
41-
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
4242
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
run: npm publish
43+
run: |
44+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
45+
npm publish

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ Release Date: 9/4/24
1717
2.0.5 - NPM package borked for cjs
1818
2.0.6 - NPM package bundling the ESM/CommonJS support
1919
2.0.7 - Finally? NPM bundling
20-
2.0.8 - CI/CD Pipeline
20+
2.0.8 - CI/CD Pipeline

0 commit comments

Comments
 (0)