Skip to content

Commit 0933c65

Browse files
committed
Meta: Update npm publisher workflow
1 parent 2bab6f7 commit 0933c65

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,15 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v3
23-
with:
24-
fetch-depth: 20
2523
- uses: actions/setup-node@v3
2624
with:
27-
node-version: 14.x
28-
registry-url: 'https://registry.npmjs.org'
25+
node-version: 18
2926
- run: npm ci || npm install
30-
- uses: fregante/setup-git-user@v1
31-
- run: npm version ${{ github.event.inputs.Version }}
27+
- uses: fregante/setup-git-user@v2
28+
- run: npm version "${{ github.event.inputs.Version }}"
3229
- run: npm publish
3330
env:
3431
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
- run: git push --follow-tags
36-
- uses: fregante/release-with-changelog@v3
37-
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
39-
exclude: true
32+
- run: gh release create "${{ github.event.inputs.Version }}" --generate-notes
33+
env:
34+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)