ci: add cicd pipeline #1
Annotations
1 error
commitlint
You have commit messages with errors
error running commitlint
require() of ES Module /github/workspace/.commitlintrc.js from /node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js not supported.
.commitlintrc.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename .commitlintrc.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /github/workspace/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
Error [ERR_REQUIRE_ESM]: require() of ES Module /github/workspace/.commitlintrc.js from /node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js not supported.
.commitlintrc.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename .commitlintrc.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /github/workspace/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
at module.exports (/node_modules/import-fresh/index.js:32:59)
at loadJsSync (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js:17:12)
at loadJs (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js:26:39)
at async #loadConfiguration (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:92:24)
at async #readConfiguration (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:77:51)
at async load (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:20:48)
at async Explorer.load (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:23:20)
at async loadConfig (/node_modules/@commitlint/load/lib/utils/load-config.js:56:19)
at async Object.load [as default] (/node_modules/@commitlint/load/lib/load.js:19:20)
at async showLintResults (/run.js:141:46)
|