| Commitlint issue with adding typescript config
|
| After extending @edx/typescript-config commintlint github action started failing with This is an upstream bug with commitlint action that edx repos use and it hasn’t been fixed yet. see Can't run commitlint on project with tsconfig.json · Issue #3256 · conventional-changelog/commitlintand Fails to run with error: Unable to compile TypeScript error · Issue #560 · wagoid/commitlint-github-action tl dr: commitlint for some reason tries to read / validate tsconfig.json file, sees that we extend @edx/typescript-config but can’t find it in node_modules since we don’t install dependencies during this action, as a result it trows an error. Temporary solution taken from the issues above is to delete tsconfig.json before running commitlint. It works for now, see this commit, but requires overriding default commitlint action from openedx org, not sure if that’s ok
Other repos will suffer from the same issue, so we probably need to somehow fix that in openedx org action. |