Skip to content

Commit

Permalink
ci: add write permissions for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CavinHuang committed Dec 28, 2024
1 parent 116c7a5 commit 174d9b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ on:
tags:
- 'v*' # 当推送 v 开头的标签时触发

permissions:
contents: write # 添加写入权限

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # 获取完整的 git 历史用于生成更新日志

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 174d9b4

Please sign in to comment.