diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4a4194f..edddddf 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -133,11 +133,11 @@ jobs: - name: Publish run: | npm config set provenance true - if git log -1 --pretty=%B | grep "release.*[0-9]\+\.[0-9]\+\.[0-9]\+"; + if git log -1 --pretty=%B | grep "release main"; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc pnpm -r publish --access public - elif git log -1 --pretty=%B | grep "release.*next"; + elif git log -1 --pretty=%B | grep "release next"; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc pnpm -r publish --tag next --access public