From 6b2e980b6023f6f834a566670d67171c23ed1a0e Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Mon, 24 Jun 2024 17:17:28 +0200 Subject: [PATCH] fix(ci): Bump semantic release to avoid rate limit --- .github/workflows/ci.yaml | 10 +++++----- .releaserc.json | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 223eb42..8e49493 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: name: Unit tests strategy: matrix: - python-version: ['3.7', '3.10'] + python-version: ['3.10'] os: [macos-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} @@ -44,9 +44,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: | python -m pip install --upgrade pip @@ -57,8 +57,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 32f411c..8002347 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -2,9 +2,18 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/github", - ["@semantic-release/exec", { - "publishCmd": "bash deploy.sh ${nextRelease.version}" - }] + [ + "@semantic-release/github", + { + "successComment": false, + "failTitle": false + } + ], + [ + "@semantic-release/exec", + { + "publishCmd": "bash deploy.sh" + } + ] ] }