Skip to content

Commit

Permalink
fix(ci): publish tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk committed Jan 27, 2025
1 parent 2b29778 commit 29e2bfb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ jobs:
run: pnpm build

- name: Publish 🚀
run: pnpm publish --no-git-checks --access=public
run: |
VERSION=$(node -p "require('./package.json').version")
if [[ "$VERSION" == *"-rc"* ]]; then
pnpm publish --no-git-checks --access=public --tag next
else
pnpm publish --no-git-checks --access=public
fi
working-directory: dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down Expand Up @@ -70,3 +76,4 @@ jobs:
- name: Publish 🚀
run: pnpm publish --no-git-checks
working-directory: dist

0 comments on commit 29e2bfb

Please sign in to comment.