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 5fc6706 commit 403cb5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ jobs:
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-yarn-
- run: yarn install
- name: Update package.json version
run: |
git fetch --tags
TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
jq --arg version "$TAG" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
registry: "https://npm.pkg.github.com"
- name: Create a Release
uses: elgohr/Github-Release-Action@v5
env:
Expand Down

0 comments on commit 403cb5e

Please sign in to comment.