Skip to content

Commit

Permalink
📰 Update CI
Browse files Browse the repository at this point in the history
- Added changeset for patch update
- Updated workflow to trigger on pull requests
- Renamed job from 'Release' to 'Publish'
  • Loading branch information
guotingchao committed Apr 29, 2024
1 parent c4dbfde commit b6397d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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
10 changes: 5 additions & 5 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit b6397d3

Please sign in to comment.