Skip to content

Commit 726e154

Browse files
committed
ci: clean up release workflow after successful publish
1 parent c6180cc commit 726e154

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: '20.x'
21+
registry-url: 'https://registry.npmjs.org'
2122
cache: npm
2223

2324
- run: npm ci
@@ -29,12 +30,9 @@ jobs:
2930
run: npx jest --testPathPatterns=spec
3031

3132
- name: Publish to npm
32-
run: |
33-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
34-
npm whoami 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
35-
npm publish --tag v3-latest 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
33+
run: npm publish --tag v3-latest
3634
env:
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3836

3937
- name: Create GitHub Release
4038
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)