From ece464ad68e2f736e3e1554abfaefbb5b548a2a1 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Tue, 12 Nov 2024 11:06:59 -0800 Subject: [PATCH] always try to publish --- .github/workflows/CI.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 77c69e3..c07dd8b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,7 +14,6 @@ permissions: tags-ignore: - '**' paths-ignore: - - '**/*.md' - LICENSE - '**/*.gitignore' - .editorconfig @@ -103,13 +102,8 @@ jobs: - name: Publish run: | npm config set provenance true - if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; - then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --access public - else - echo "Not a release, skipping publish" - fi + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + npm publish --access public env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}