Skip to content

Commit

Permalink
ci(CI&CD): 🎡 update
Browse files Browse the repository at this point in the history
  • Loading branch information
guotingchao committed Apr 29, 2024
1 parent 2bebc45 commit ba661f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
pnpm build
- name: 📣 Create Release Pull Request and Publish new version to Npm
if: github.ref_name == 'develop' && github.event_name == 'pull_request'
if: github.head_ref == 'develop' && github.event_name == 'pull_request'
id: changesets
uses: changesets/action@v1.4.7
with:
Expand All @@ -74,7 +74,7 @@ jobs:
NPM_TOKEN: ${{ env.NPM_TOKEN }}

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

0 comments on commit ba661f3

Please sign in to comment.