File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Publish to npm
33on :
44 push :
55 tags :
6- - ' v*.*. *'
6+ - ' *'
77 workflow_dispatch :
88
99jobs :
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v4
16- with :
17- fetch-depth : 0
1816
1917 - name : Setup Node.js
2018 uses : actions/setup-node@v4
2422
2523 - name : Get version from tag
2624 id : version
27- run : echo "version=$(echo $GITHUB_REF | sed 's/refs\/tags\///')" >> $GITHUB_OUTPUT
25+ run : |
26+ VERSION="${GITHUB_REF#refs/tags/}"
27+ echo "version=$VERSION" >> $GITHUB_OUTPUT
2828
2929 - name : Update package.json version
3030 run : npm pkg set version=${{ steps.version.outputs.version }}
4343 with :
4444 body : |
4545 ## @simcu/simapi v${{ steps.version.outputs.version }}
46-
47- See [changelog](https://github.com/simcu/simapi-vue/releases) for details.
4846 env :
4947 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments