test脚本末尾 'exit 0' 在CI调用 'npm test -- --runInBand' 时 变成 'exit 0 --runInBand' 报错退出码1,导致workflow在测试步骤 失败,后续上传步骤不执行。去掉多余的 exit 0。
15 lines
326 B
JSON
15 lines
326 B
JSON
{
|
|
"name": "lunar-mini",
|
|
"version": "1.0.0",
|
|
"description": "祈福小助手 - 万年历微信小程序",
|
|
"private": true,
|
|
"scripts": {
|
|
"test": "echo \"No tests yet\"",
|
|
"upload": "node ci/upload-ci.cjs",
|
|
"preview": "node ci/preview-ci.cjs"
|
|
},
|
|
"devDependencies": {
|
|
"miniprogram-ci": "^2.0.0"
|
|
}
|
|
}
|