From 4ea18b0a865b6500cfc95f7f065d9e2532c2a2a3 Mon Sep 17 00:00:00 2001 From: msclock Date: Thu, 7 Nov 2024 01:38:46 +0000 Subject: [PATCH] ci: correct semantic-release Signed-off-by: msclock --- .github/workflows/ci.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d5c6b7..84a53f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,30 +107,27 @@ jobs: with: jobs: ${{ toJSON(needs) }} - release: - name: release + semantic-release: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' permissions: - contents: write + contents: write # write for semantic-release needs: [pass] steps: - name: Checkout uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-node@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 20 + node-version: lts/* - name: Semantic Release env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: > npx - --package @semantic-release/github - --package conventional-changelog-conventionalcommits@7.0.2 - --package semantic-release@23.1.1 + --package conventional-changelog-conventionalcommits@7 + --package semantic-release@22 semantic-release