feat: 更新环境变量配置,优先使用 GITHUB_TOKEN 以支持 GitHub Actions
This commit is contained in:
1 parent
7d536d65f1
commit
cb8b3876c0
2 files changed
+3
-3
No files matched your search
@@ -16,7 +16,7 @@ const baseConfig = {
|
||||
owner: 'Jasery',
|
||||
repo: 'gdt-tool',
|
||||
releaseType: 'release',
|
||||
token: process.env.GH_TOKEN || '' // 可选:从环境变量获取 GitHub Token,私有仓库必需
|
||||
token: process.env.GITHUB_TOKEN || process.env.GH_TOKEN || '' // 优先使用 GITHUB_TOKEN(GitHub Actions 自动提供)
|
||||
}
|
||||
],
|
||||
artifactName: '${productName} ${version}_${arch}.${ext}',
|
||||
|
||||
Reference in new issue
Block a user