From eb8d21b80196d56621f180e1f366625218db9c8f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Pull=20Request=20form=20develop?= =?UTF-8?q?=20(#83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📰 Update CI - Added changeset for patch update - Updated workflow to trigger on pull requests - Renamed job from 'Release' to 'Publish' * ci(CI&CD): :ferris_wheel: update CI * feat(CI&CD): :sparkles: push new workflow --------- Co-authored-by: guozichun --- .changeset/lovely-horses-design.md | 5 +++++ .changeset/perfect-emus-rule.md | 5 +++++ .github/workflows/Publish.yml | 5 +++-- .github/workflows/Release.yml | 3 ++- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .changeset/lovely-horses-design.md create mode 100644 .changeset/perfect-emus-rule.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/.changeset/perfect-emus-rule.md b/.changeset/perfect-emus-rule.md new file mode 100644 index 0000000..9f72abf --- /dev/null +++ b/.changeset/perfect-emus-rule.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 8f67865..9e857cf 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -12,6 +12,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + PAT: ${{ secrets.PAT }} jobs: Publish: @@ -73,14 +74,14 @@ jobs: with: publish: pnpm run publish:release env: - GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ env.PAT }} NPM_TOKEN: ${{ env.NPM_TOKEN }} - name: 🎺 Publish new version to Github Packages id: publish uses: JS-DevTools/npm-publish@v3 with: - token: ${{ env.GITHUB_TOKEN }} + token: ${{ env.PAT }} registry: "https://npm.pkg.github.com" - if: ${{ steps.publish.outputs.type }} diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 1e23ce3..ee49e33 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -12,6 +12,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + PAT: ${{ secrets.PAT }} jobs: release: @@ -68,5 +69,5 @@ jobs: commit: "chore(release): publish new version packages 🦋 [skip ci]" version: pnpm run publish:version env: - GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ env.PAT }} NPM_TOKEN: ${{ env.NPM_TOKEN }}