From 5a26626231cd051b088fad1ee8301068b9961a65 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Tue, 11 Jun 2024 14:07:47 +0200 Subject: [PATCH] fix(release): Update semantic release --- .github/workflows/ci.yaml | 8 ++++---- .releaserc.json | 14 +++++++++++++- tests/validation_test.py | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 456a909..bed1a1a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,9 +16,9 @@ jobs: with: python-version: 3.7 - name: set up node # we need node for for semantic release - uses: actions/setup-node@v2.1.2 + uses: actions/setup-node@v4 with: - node-version: 14.2.0 + node-version: 22.2.0 - name: install python dependencies run: pip install . - name: install semantic-release @@ -27,8 +27,8 @@ jobs: - name: run semantic release id: new_release run: | - nextRelease="`npx semantic-release@^17.0.0 --dryRun | grep -oP 'Published release \K.*? ' || true`" - npx semantic-release@^17.0.0 + nextRelease="`npx semantic-release@^23.1.1 --dryRun | grep -oP 'Published release \K.*? ' || true`" + npx semantic-release@^23.1.1 echo "::set-output name=tag::$nextRelease" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index a966fe6..8002347 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -2,6 +2,18 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/github" + [ + "@semantic-release/github", + { + "successComment": false, + "failTitle": false + } + ], + [ + "@semantic-release/exec", + { + "publishCmd": "bash deploy.sh" + } + ] ] } diff --git a/tests/validation_test.py b/tests/validation_test.py index 644755e..d77d7fa 100644 --- a/tests/validation_test.py +++ b/tests/validation_test.py @@ -4,5 +4,5 @@ def test_abnt_nbr_15575_daylight(): recipe = AbntNbr15575DaylightEntryPoint().queenbee - assert recipe.name == 'abnt-nbr-15575-daylight-entry-point' + assert recipe.name == 'abnt-nbr15575-daylight-entry-point' assert isinstance(recipe, DAG)