Skip to content

Commit

Permalink
Add update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Oct 21, 2024
1 parent 403cb5e commit 8a55062
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
- run: yarn install
- name: Update package.json version
run: |
git fetch --tags
TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
TAG=${GITHUB_REF#refs/tags/}
jq --arg version "$TAG" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
- uses: JS-DevTools/npm-publish@v3
with:
Expand Down

0 comments on commit 8a55062

Please sign in to comment.