Skip to content

Commit f0e4ed0

Browse files
committed
replace release pipeline with pre-defined action
1 parent 0ef995e commit f0e4ed0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: '20.x'
19-
registry-url: 'https://registry.npmjs.org'
20-
- run: npm publish --provenance --access public
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
- uses: JS-DevTools/npm-publish@v3
20+
with:
21+
token: ${{ secrets.NPM_TOKEN }}
2322

2423
github:
2524
runs-on: ubuntu-latest
@@ -31,7 +30,7 @@ jobs:
3130
- uses: actions/setup-node@v4
3231
with:
3332
node-version: '20.x'
34-
registry-url: 'https://npm.pkg.github.com'
33+
- uses: JS-DevTools/npm-publish@v3
34+
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
36-
scope: '@joshraphael'
37-
- run: npm publish --access public
36+
registry: "https://npm.pkg.github.com"

0 commit comments

Comments
 (0)