Skip to content

Fails to run with error: Unable to compile TypeScript error #560

@tgallacher

Description

@tgallacher

Summary

This action failed to run on a Typescript project, with a tsconfig.json. Received the following error:

error running commitlint
⨯ Unable to compile TypeScript:
error TS6053: File '<redacted>' not found.

TSError: ⨯ Unable to compile TypeScript:
error TS6053: File '<redacted>' not found.

    at createTSError (/node_modules/ts-node/src/index.ts:859:[12])
    at reportTSError (/node_modules/ts-node/src/index.ts:863:19)
    ...

The <redacted> "file" is an internal TS config package (private registry).

This is the Github workflow:

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

      - uses: wagoid/commitlint-github-action@v5
        with:
          configFile: commitlint.config.js

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions