Skip to content

Commit

Permalink
Merge pull request #164 from authzed/fix-version-setting-on-release
Browse files Browse the repository at this point in the history
Use script instead of abandoned lib
  • Loading branch information
tstirrat15 authored Oct 3, 2024
2 parents 07d2523 + 07bdafb commit 4ad599b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
node-version: 18
- uses: bahmutov/npm-install@v1
- run: yarn test
- uses: battila7/get-version-action@v2
# Set the version in package.json to match the tag
- run: "npm version ${{ steps.get_version.outputs.version-without-v }}"
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: "npm version ${VERSION}"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -41,9 +45,13 @@ jobs:
- uses: bahmutov/npm-install@v1
with:
working-directory: ./js-dist
- uses: battila7/get-version-action@v2
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Set the version in package.json to match the tag
- run: "npm version ${{ steps.get_version.outputs.version-without-v }}"
- run: "npm version ${VERSION}"
working-directory: ./js-dist
- uses: JS-DevTools/npm-publish@v3
with:
Expand Down

0 comments on commit 4ad599b

Please sign in to comment.