We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3903422 commit f666c7dCopy full SHA for f666c7d
.github/workflows/npm-publish.yml
@@ -25,10 +25,12 @@ jobs:
25
node-version: 18
26
- run: npm ci || npm install
27
- uses: fregante/setup-git-user@v2
28
- - run: npm version "${{ github.event.inputs.Version }}"
+ - 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`
31
- run: npm publish
32
env:
33
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- - run: gh release create "${{ github.event.inputs.Version }}" --generate-notes
34
+ - run: gh release create "$VERSION" --generate-notes
35
36
GH_TOKEN: ${{ github.token }}
0 commit comments