Skip to content

Commit

Permalink
fix: wrong TAG in publish
Browse files Browse the repository at this point in the history
  • Loading branch information
larte committed Mar 22, 2024
1 parent fb88a09 commit 0cd63d0
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 0cd63d0

Please sign in to comment.