diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dfa736c5..e9362435 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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