From 1b59d790ff02e559fb0dee6d176ff7a1d6a8b90d Mon Sep 17 00:00:00 2001 From: guozichun Date: Tue, 30 Apr 2024 12:11:08 +0800 Subject: [PATCH] feat(CI&CD): :sparkles: push new workflow --- .changeset/perfect-emus-rule.md | 5 +++++ .github/workflows/Publish.yml | 5 +++-- .github/workflows/Release.yml | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .changeset/perfect-emus-rule.md 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 }}