Skip to content

Commit

Permalink
Update release to use regext
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Nov 25, 2024
1 parent bfe69cf commit 0e0aad5
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 @@ -34,10 +34,10 @@ jobs:
- name: Publish to npm
run: |
if [[ ${{ steps.get_version.outputs.VERSION }} == *-* ]]; then
pnpm prerelease
else
if [[ ${{ steps.get_version.outputs.VERSION }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
pnpm release
else
pnpm prerelease
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0e0aad5

Please sign in to comment.