-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to run with error: Unable to compile TypeScript error #560
Comments
Hi @tgallacher, thanks for submitting this issue! Looks like we'll need to wait for commitlint to fix this issue, as ths workaround from this comment is not possible in this action. The good thing is that it doesn't happen on all Typescript projects, I run this action in other TS projects and it doesn't fail 😌 Another workaround I can suggest to you, so that you can keep running this action in v5, is to delete name: Standards
on:
pull_request:
jobs:
commitlint:
name: Commitlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# required to get all history, not just commit that triggers current run
with:
fetch-depth: 0
- run: rm tsconfig.json
- uses: wagoid/commitlint-github-action@v5
with:
configFile: commitlint.config.js I can't run this |
It also hit one of our repos today. Can we probably re-open this issue and close it when it's fixed? |
Yeah me too. Mine is because my tsconfig extends react native's one and its of course not installed when running with this action: Throws:
|
I closed the issue because there's nothing I can do in the action, could you guys try the workaround from my comment? #560 (comment) |
Add workaround for tsconfig issue with commitlint, see wagoid/commitlint-github-action#560 (comment) Signed-off-by: Alexander Trost <[email protected]>
Summary
This action failed to run on a Typescript project, with a
tsconfig.json
. Received the following error:The
<redacted>
"file" is an internal TS config package (private registry).This is the Github workflow:
This issue appears to be related to conventional-changelog/commitlint#3256.
Note: I managed to find a workaround by downgrading to
v4
of this action:wagoid/commitlint-github-action@v4
The text was updated successfully, but these errors were encountered: