Skip to content

Commit

Permalink
ci: 发布时自动创建 release 草稿
Browse files Browse the repository at this point in the history
  • Loading branch information
suiyun39 committed Mar 13, 2024
1 parent d38299c commit b0d7f15
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ jobs:
- run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get Release Name
id: release_name
run: |
RELEASE_NAME=${{ github.ref }}
RELEASE_NAME=${RELEASE_NAME#refs/tags/v}
echo "name=${RELEASE_NAME}" >> "$GITHUB_OUTPUT"
- uses: softprops/action-gh-release@v2
with:
name: ${{ steps.release_name.outputs.name }}
body: 'draft'
draft: true

0 comments on commit b0d7f15

Please sign in to comment.