Skip to content

Commit

Permalink
ci(CI&CD): 🎡 cI upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
guotingchao committed Apr 29, 2024
1 parent c075854 commit 774a6dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
jobs:
release:
name: 🚀 Release
if: github.repository_owner == 'guotingchao' && github.event.pull_request.merged == true
# if: github.repository_owner == 'guotingchao' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
Expand Down Expand Up @@ -59,6 +59,7 @@ jobs:
id: build-the-library
run: |
pnpm build
- name: 📣 Create Release Pull Request and Publish new version to Npm
if: github.head_ref == 'develop' && github.event_name == 'pull_request'
id: changesets
Expand All @@ -71,6 +72,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
NPM_TOKEN: ${{ env.NPM_TOKEN }}

- name: 🎺 Publish new version to Github Packages
if: startsWith(github.head_ref, 'changeset-release/main') && github.event_name == 'pull_request'
uses: JS-DevTools/npm-publish@v3
Expand Down

0 comments on commit 774a6dd

Please sign in to comment.