Skip to content

Commit

Permalink
Set package.json version at publish time
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Oct 2, 2024
1 parent 4ed5238 commit eaf347f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
working-directory: ./
- 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 }}"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -45,6 +47,8 @@ jobs:
install-command: yarn --frozen-lockfile --silent
working-directory: ./
- 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 }}"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit eaf347f

Please sign in to comment.