Skip to content

Commit

Permalink
fix: update release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
shaobeichen committed Nov 1, 2024
1 parent b6bd561 commit e53bb7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ try {
// 获取子文件夹
const folders = fs.readdirSync(npmDir)

const npmToken = process.env.NPM_TOKEN // 从环境变量中获取 token
// 从环境变量中获取 token
const npmToken = process.env.NPM_TOKEN
if (!npmToken) {
console.error('请设置 NPM_TOKEN 环境变量.')
process.exit(1)
Expand Down

0 comments on commit e53bb7d

Please sign in to comment.