From de9e51864e7c34a41b45cbb94ee4bea93605c1e6 Mon Sep 17 00:00:00 2001 From: Cayman Date: Mon, 22 Jul 2024 11:13:17 -0400 Subject: [PATCH] chore: fix publish regex --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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