Skip to content

Commit

Permalink
TENT-5976 fix: Use v prefix for tags and release upload on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbarth-disy committed Nov 7, 2024
1 parent 08a6953 commit 2e71ab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
git add "package-lock.json"
git add "CHANGELOG.md"
git commit -m "chore: release ${{ env.RELEASE_VERSION }}"
git tag ${{ env.RELEASE_VERSION }}
git tag v${{ env.RELEASE_VERSION }}
- name: Push changes
env:
Expand All @@ -74,15 +74,15 @@ jobs:
- name: Update GitHub release documentation
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_VERSION }}
tag_name: v${{ env.RELEASE_VERSION }}
body: ${{ steps.get-changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish npm package
run: |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
npm publish --verbose --access=public --tag=${{ env.RELEASE_TAG }}
npm publish --verbose --access=public --tag=v${{ env.RELEASE_TAG }}
env:
NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}

Expand Down

0 comments on commit 2e71ab8

Please sign in to comment.