Skip to content

Commit

Permalink
Merge pull request #10 from connected-hil/fix/actions-release
Browse files Browse the repository at this point in the history
fix: wrong TAG in publish
  • Loading branch information
larte authored Mar 22, 2024
2 parents 1196ab0 + 0cd63d0 commit 76da73c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ jobs:
with:
version: 8
run_install: true
- run: |
- name: Set version
run: |
TAG=${{ github.event.release.tag_name }}
VERSION=${TAG#v}
echo "VERSION is: $VERSION"
echo "VERSION=${TAG:v}" >> $GITHUB_ENV"
- name: Bump Version of package.json
uses: ramonpaolo/bump-version@v2.3.1
with:
tag: ${{ env.VERSION }}
commit: false
- run: |
pnpm build
pnpm publish --publish-branch main --no-git-checks --tag $VERSION
pnpm publish --publish-branch main --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 76da73c

Please sign in to comment.