From b7fd75f53fd148940a091cb842ad844788eef606 Mon Sep 17 00:00:00 2001 From: Daniel Jancar Date: Wed, 19 Jun 2024 09:48:57 +0200 Subject: [PATCH] chore: update release flow --- .commitlintrc => .commitlintrc.json | 5 ++++- .github/workflows/release.yml | 6 ++++++ .prettierrc.json | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) rename .commitlintrc => .commitlintrc.json (55%) diff --git a/.commitlintrc b/.commitlintrc.json similarity index 55% rename from .commitlintrc rename to .commitlintrc.json index bfec716..09d6ea0 100644 --- a/.commitlintrc +++ b/.commitlintrc.json @@ -5,6 +5,9 @@ 2, "always", ["chore", "docs", "feat", "fix", "refactor", "style", "test"] - ] + ], + "body-max-line-length": [2, "always", 200], + "footer-max-line-length": [2, "always", 200], + "footer-leading-blank": [1, "always"] } } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b11967..090db1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,9 +27,15 @@ jobs: - name: Stage all changes run: git add -A + - name: Lint commit messages + run: | + npx commitlint --from HEAD~1 --to HEAD + continue-on-error: true + - name: Semantic Release env: GH_RELEASE: ${{ secrets.GH_RELEASE }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + DEBUG: semantic-release:* run: npx semantic-release --no-verify diff --git a/.prettierrc.json b/.prettierrc.json index 3dce3d7..a761d8d 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -6,7 +6,6 @@ "singleQuote": true, "trailingComma": "all", "bracketSpacing": true, - "jsxBracketSameLine": false, "arrowParens": "always", "proseWrap": "preserve", "htmlWhitespaceSensitivity": "css",