Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandronanez committed Dec 1, 2024
1 parent 88cf5a1 commit 414734d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ jobs:
git config user.email github-actions@github.com
- name: Update version
run: |
git fetch
git checkout main
VERSION=${GITHUB_REF#refs/tags/}
npm version ${VERSION} --no-git-tag-version
git add package.json
git commit -m "Update version to ${VERSION}"
git push
git push origin main
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: npm ci
Expand Down

0 comments on commit 414734d

Please sign in to comment.