mirror of
https://github.com/yanhao98/semantic-release-action-example.git
synced 2025-07-12 13:40:48 +08:00
feat: 添加 GitHub 令牌到 CI 配置以支持发布流程
This commit is contained in:
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -23,6 +23,7 @@ jobs:
|
||||
id: semantic
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
after-release:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -9,6 +9,9 @@ plugins:
|
||||
- - "@semantic-release/npm"
|
||||
# [provenance](https://docs.npmjs.com/generating-provenance-statements#using-third-party-package-publishing-tools)
|
||||
- npmPublish: true
|
||||
# #############################
|
||||
# https://github.com/semantic-release/github?tab=readme-ov-file#configuration
|
||||
# #############################
|
||||
- "@semantic-release/github"
|
||||
- - "@semantic-release/git"
|
||||
- message: |-
|
||||
|
Reference in New Issue
Block a user