https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.htmlhttps://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html
- name: MiniprogramCiUpload
run: |
miniprogram-ci upload \
--project-type miniProgram \
--appid xxxid \
--project-path ./client/house \
--private-key-path /tmp/private.key \
--upload-version "${{ github.ref_name }}" \
--upload-description "CI build ${{ github.ref_name }} @ ${{ github.sha }}" \
--robot 1 \
--threads 2
appid、private.key 都是确认过多次都是对的
LOG:
[info] useCOS parameter: undefined
[info] upload zip buffer size: 40080
[info] request url: https:
Error: 20003 Error: {"errCode":-1,"errMsg":"inner get attr fail with errcode: 41001, errmsg: access_token missing"}
CodeError: Error: {"errCode":-1,"errMsg":"inner get attr fail with errcode: 41001, errmsg: access_token missing"}
at innerUpload (/usr/local/lib/node_modules/miniprogram-ci/dist/ci/upload.js:1:4420)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async upload (/usr/local/lib/node_modules/miniprogram-ci/dist/ci/upload.js:1:1066)
at async Object.upload (/usr/local/lib/node_modules/miniprogram-ci/dist/utils/report.js:1:1490)
at async run (/usr/local/lib/node_modules/miniprogram-ci/dist/cli/index.js:1:10718) {
code: 20003
}
errmsg: access_token missingkey 有问题。
可以搞个无痕模式的 浏览器去重置key。