From b6397d3b27f3a3ccf2271e4f78104990a0725960 Mon Sep 17 00:00:00 2001 From: guozichun Date: Tue, 30 Apr 2024 00:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B0=20Update=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added changeset for patch update - Updated workflow to trigger on pull requests - Renamed job from 'Release' to 'Publish' --- .changeset/lovely-horses-design.md | 5 +++++ .github/workflows/Publish.yml | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/lovely-horses-design.md diff --git a/.changeset/lovely-horses-design.md b/.changeset/lovely-horses-design.md new file mode 100644 index 0000000..180f182 --- /dev/null +++ b/.changeset/lovely-horses-design.md @@ -0,0 +1,5 @@ +--- +"@cardbrother/nestjs-tencent-cloud-sdk": patch +--- + +update CI diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 8abddd8..7ef9536 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -1,11 +1,11 @@ name: 📦 Publish on: - pull_request_target: + pull_request: types: - closed branches: - - changeset-release/main + - main workflow_dispatch: concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -14,9 +14,9 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} jobs: - release: - name: 🚀 Release - # if: github.repository_owner == 'guotingchao' && github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.head_ref == 'changeset-release/main' + Publish: + name: 🚀 Publish + if: github.repository_owner == 'guotingchao' && github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.head_ref == 'changeset-release/main' runs-on: ubuntu-latest steps: - name: ⬇️ Checkout