Skip to content

Commit

Permalink
chore: fix publish regex
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Jul 22, 2024
1 parent 16e90b7 commit de9e518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
- name: Publish
run: |
npm config set provenance true
if node -e "console.log(require('./package.json').version)" | grep "v[0-9]\+\.[0-9]\+\.[0-9]\+$";
if node -e "console.log(require('./package.json').version)" | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
Expand Down

0 comments on commit de9e518

Please sign in to comment.