algolia / renderscript

A custom JavaScript rendering engine based on Playwright
21 stars 6 forks source link

fix: semantic release #850

Closed sbellone closed 1 year ago

sbellone commented 1 year ago

Semantic release has failed since the lock file maintenance that happened in https://github.com/algolia/renderscript/pull/814, with the following error:

Error: Command failed with exit code 1: npm version 2.2.10 --userconfig /tmp/ff4edfc49c77d65bf4c043c1e0a4bfc3/.npmrc --no-git-tag-version --allow-same-version
    at makeError (file:///home/runner/work/renderscript/renderscript/node_modules/execa/lib/error.js:60:11)
    at handlePromise (file:///home/runner/work/renderscript/renderscript/node_modules/execa/index.js:124:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async default (file:///home/runner/work/renderscript/renderscript/node_modules/@semantic-release/npm/lib/prepare.js:26:3)
    at async prepare (file:///home/runner/work/renderscript/renderscript/node_modules/@semantic-release/npm/index.js:63:3)
    at async validator (file:///home/runner/work/renderscript/renderscript/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
    at async file:///home/runner/work/renderscript/renderscript/node_modules/semantic-release/lib/plugins/pipeline.js:38:36
    at async Promise.all (index 0)
    at async next (file:///home/runner/work/renderscript/renderscript/node_modules/p-reduce/index.js:15:44) {

https://github.com/algolia/renderscript/actions/runs/6221354721/job/16883129669

There is no explicit error message. We'd need to list and test all sub-dependencies of semantic-release/npm to find the culprit.

To unblock the releases, I finally tried the following:

It worked, a version was finally tagged: https://github.com/algolia/renderscript/compare/fix/semantic-release

Changes