Skip to content

Commit f666c7d

Browse files
committed
Meta: Fix release workflow
1 parent 3903422 commit f666c7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
node-version: 18
2626
- run: npm ci || npm install
2727
- uses: fregante/setup-git-user@v2
28-
- run: npm version "${{ github.event.inputs.Version }}"
28+
- name: Create version
29+
run: VERSION="$(npm version "${{ github.event.inputs.Version }}")"
30+
# Get the generated version, this enables support for keywords: `npm version patch`
2931
- run: npm publish
3032
env:
3133
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32-
- run: gh release create "${{ github.event.inputs.Version }}" --generate-notes
34+
- run: gh release create "$VERSION" --generate-notes
3335
env:
3436
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)