File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 node-version : 18
1717 - uses : bahmutov/npm-install@v1
1818 - run : yarn test
19- - uses : battila7/get-version-action@v2
2019 # Set the version in package.json to match the tag
21- - run : " npm version ${{ steps.get_version.outputs.version-without-v }}"
20+ - name : Write release version
21+ run : |
22+ VERSION=${GITHUB_REF_NAME#v}
23+ echo Version: $VERSION
24+ echo "VERSION=$VERSION" >> $GITHUB_ENV
25+ - run : " npm version ${VERSION}"
2226 - uses : JS-DevTools/npm-publish@v3
2327 with :
2428 token : ${{ secrets.NPM_TOKEN }}
4145 - uses : bahmutov/npm-install@v1
4246 with :
4347 working-directory : ./js-dist
44- - uses : battila7/get-version-action@v2
48+ - name : Write release version
49+ run : |
50+ VERSION=${GITHUB_REF_NAME#v}
51+ echo Version: $VERSION
52+ echo "VERSION=$VERSION" >> $GITHUB_ENV
4553 # Set the version in package.json to match the tag
46- - run : " npm version ${{ steps.get_version.outputs.version-without-v } }"
54+ - run : " npm version ${VERSION }"
4755 working-directory : ./js-dist
4856 - uses : JS-DevTools/npm-publish@v3
4957 with :
You can’t perform that action at this time.
0 commit comments