Skip to content

Error running commitlint require() of ES Module #758

@VictorPulzz

Description

@VictorPulzz

Problem description
When tried to run the action received the follow error:
require() of ES Module /github/workspace/node_modules/@commitlint/config-conventional/lib/index.js from /node_modules/@commitlint/resolve-extends/lib/index.js not supported...

Screenshot:
image

Adicional info
My workflow file:

name: Release

#on:
#  push:
#    branches:
#      - master

on:
  workflow_dispatch:

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
          persist-credentials: false

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 18

      - name: Install dependencies
        run: npm ci

      - name: Unit tests
        run: npm test

      - name: Reset changes from integration unit tests
        run: git reset --hard HEAD

      - name: Build
        run: npm run build

      - name: Type check
        run: npm run check-types

      - name: Code linting check
        run: npm run lint

      - name: Code formatting
        run: npm run prettier

      - name: Commit formatting check
        uses: wagoid/commitlint-github-action@v5

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