fix: rename commitlint.config.js to .cjs for ESM compatibility
wagoid/commitlint-github-action v6.2.1 runs with "type": "module" in package.json, causing .js files to be treated as ESM. The module.exports syntax requires CommonJS, so rename to .cjs.
This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Verify distributed files in src/ match the repo's own copies
|
# Verify distributed files in src/ match the repo's own copies
|
||||||
status=0
|
status=0
|
||||||
for file in .releaserc.yaml commitlint.config.js; do
|
for file in .releaserc.yaml commitlint.config.cjs; do
|
||||||
if ! diff -q "$file" "src/$file" > /dev/null 2>&1; then
|
if ! diff -q "$file" "src/$file" > /dev/null 2>&1; then
|
||||||
echo "❌ $file differs from src/$file"
|
echo "❌ $file differs from src/$file"
|
||||||
diff --color "$file" "src/$file" || true
|
diff --color "$file" "src/$file" || true
|
||||||
|
|||||||
Reference in New Issue
Block a user