mirror of https://github.com/certd/certd
chore:
parent
3c9c3ca3b0
commit
95d071ba56
|
@ -17,7 +17,7 @@
|
|||
"prepublishOnly1": "npm run check && npm run before-build && lerna run build ",
|
||||
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\"",
|
||||
"deploy1": "node --experimental-json-modules deploy.js ",
|
||||
"check": "node --experimental-json-modules publish-check.js",
|
||||
"check": "node --experimental-json-modules publish-check.js && echo %GH_TOKEN%",
|
||||
"init": "lerna run build"
|
||||
},
|
||||
"license": "AGPL-3.0",
|
||||
|
|
|
@ -12,12 +12,8 @@ function check(){
|
|||
|
||||
//GH_TOKEN
|
||||
console.log("检查 GH_TOKEN")
|
||||
if(process.env.npm_config_gh_token){
|
||||
process.env.GH_TOKEN = process.env.npm_config_gh_token
|
||||
childProcess.exec("set GH_TOKEN="+process.env.npm_config_gh_token)
|
||||
}
|
||||
if(!process.env.GH_TOKEN){
|
||||
console.log(process.env)
|
||||
// setx /M GH_TOKEN xxxxx
|
||||
console.error("GH_TOKEN 未设置")
|
||||
throw new Error("GH_TOKEN 未设置")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue