Skip to content

Commit

Permalink
chore(release): add GitHub Release step for editor package on master …
Browse files Browse the repository at this point in the history
…branch
  • Loading branch information
cycleccc committed Jan 4, 2025
1 parent ab4775f commit c3ab3cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# 发布 GitHub Release 仅针对 editor 包
- name: Publish GitHub Release for editor
if: ${{ github.ref_name == 'master' }} # 仅在 master 分支发布
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
packages/editor/dist/** # 仅附加 editor 包的构建产物
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c3ab3cc

Please sign in to comment.