diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4403a05..8b4e3c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: cat semantic-release-output.log exit 1 fi - tagFormat=$(node -e "const config=require('./release.config.js'); console.log(config.tagFormat)") + tagFormat=$(node -e "const config=require('./release.config.cjs'); console.log(config.tagFormat)") if [ "${tagFormat}" = "null" ] then tagFormat="v\${version}" diff --git a/release-config.js b/release.config.cjs similarity index 98% rename from release-config.js rename to release.config.cjs index 48601ba..1277003 100644 --- a/release-config.js +++ b/release.config.cjs @@ -4,6 +4,7 @@ const {readFileSync} = require("fs") const commitTemplate = readFileSync("./releaseNotesTemplates/commit.hbs").toString() // eslint-disable-next-line no-undef module.exports = { + tagFormat: "v${version}", branches: [ { name: "main" diff --git a/sonar-project.properties b/sonar-project.properties index 93deaf5..aac5773 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -6,5 +6,5 @@ sonar.coverage.exclusions= \ **/*.test.*, \ **/jest.config.ts, \ scripts/*, \ - release-config.js + release-config.cjs sonar.javascript.lcov.reportPaths=coverage/lcov.info