Skip to content

Commit

Permalink
🤖 Pull Request form develop (#83)
Browse files Browse the repository at this point in the history
* 📰 Update CI

- Added changeset for patch update
- Updated workflow to trigger on pull requests
- Renamed job from 'Release' to 'Publish'

* ci(CI&CD): 🎡 update CI

* feat(CI&CD): ✨ push new workflow

---------

Co-authored-by: guozichun <guotingchaopr@gmail.com>
  • Loading branch information
github-actions[bot] and guotingchao authored Apr 30, 2024
1 parent 052cf09 commit eb8d21b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-horses-design.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: 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 eb8d21b

Please sign in to comment.