From b540727795f587d60603b796db36ef559b054cf3 Mon Sep 17 00:00:00 2001 From: NeverEllipsis Date: Thu, 22 Aug 2024 17:45:50 +0800 Subject: [PATCH] chore: modify publish workflow --- .github/workflows/npm-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 18318e0c..fc75986c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,13 +11,13 @@ on: branches: - main tags: - - 'Publish' + - v* + if: startsWith(github.ref, 'refs/tags/') jobs: build-and-publish: - # git tags中包含Publish 且 ['Unit Tests', 'Code Check']工作流成功完成 - if: > - startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'Publish') && github.event.workflow_run.conclusion == 'success' + # ['Unit Tests', 'Code Check']工作流成功完成 + if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: - name: Check out code