diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ae4c14b..e2b18c8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,4 +39,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # NPM_TOKEN: ${{ secrets.CERN_SIS_NPM }} - run: npx semantic-release -v + run: npx semantic-release --dry-run diff --git a/commitlint.config.js b/commitlint.config.js index b29b5ae..7d72dc6 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1,17 @@ +import * as rules from "@commitlint/rules"; + export default { extends: ["@commitlint/config-conventional"], + plugins: [ + { + rules: { + // Excludes markdown links from body max length calculation + // (needed for semantic-release automatic commits) + "body-max-length": (parsed, _when, _value) => { + parsed.header = parsed.header.replace(/\[([^[\]]+)\]\(([^)]+)\)/, ""); + return rules.default["body-max-length"](parsed, _when, _value); + }, + }, + }, + ], }; diff --git a/package.json b/package.json index f3cb243..ee1f8df 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-formule", "private": false, - "version": "1.0.0", + "version": "0.1.0", "author": "CERN", "license": "MIT", "repository": {