Skip to content

Commit

Permalink
feat(CI&CD): ✨ push new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guotingchao committed Apr 30, 2024
1 parent adb1554 commit 1b59d79
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-emus-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cardbrother/nestjs-tencent-cloud-sdk": patch
---

update ci
5 changes: 3 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

0 comments on commit 1b59d79

Please sign in to comment.