From 1ef2dadaea42f72a8b1799e123f4cbed8ecb1ce0 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Garcia Date: Mon, 4 Mar 2024 16:44:29 +0100 Subject: [PATCH] feat: trying --- .github/workflows/publish.yml | 3 +++ commitlint.config.js | 14 ++++++++++++++ package.json | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ae4c14b..4b76976 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,6 +35,9 @@ jobs: # with: # token: ${{ secrets.CERN_SIS_NPM }} + - name: Use dummy npm registry + run: npm set registry http://localhost:8987 + - name: Publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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": {