From 58d58dc41898378a26627195f2c43885db1f2949 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Fri, 15 Nov 2024 12:12:08 -0500 Subject: [PATCH] ci: update release pipeline --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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