From bab54bf75e4ec817154a938bef4173a83389e8aa Mon Sep 17 00:00:00 2001 From: guozichun Date: Mon, 29 Apr 2024 22:30:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20workflow=20release=20ac?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added a patch for "@cardbrother/nestjs-tencent-cloud-sdk" - Updated conditions in the release workflow for consistency --- .changeset/wise-suns-hope.md | 5 +++++ .github/workflows/Release.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/wise-suns-hope.md diff --git a/.changeset/wise-suns-hope.md b/.changeset/wise-suns-hope.md new file mode 100644 index 0000000..eb8f701 --- /dev/null +++ b/.changeset/wise-suns-hope.md @@ -0,0 +1,5 @@ +--- +"@cardbrother/nestjs-tencent-cloud-sdk": patch +--- + +update workflow release action diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 7e35b25..44020b9 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -61,7 +61,7 @@ jobs: pnpm build - name: 📣 Create Release Pull Request and Publish new version to Npm - if: github.head_ref == 'develop' && github.event_name == 'pull_request' + if: github.ref_name == 'develop' && github.event_name == 'pull_request' id: changesets uses: changesets/action@v1.4.7 with: @@ -74,7 +74,7 @@ jobs: NPM_TOKEN: ${{ env.NPM_TOKEN }} - name: 🎺 Publish new version to Github Packages - if: startsWith(github.head_ref, 'changeset-release/main') && github.event_name == 'pull_request' + if: startsWith(github.ref_name, 'changeset-release/main') && github.event_name == 'pull_request' uses: JS-DevTools/npm-publish@v3 with: token: ${{ env.GITHUB_TOKEN }}