From 348ddeae685870cd432e231d82025d0538193b02 Mon Sep 17 00:00:00 2001 From: Matan Borenkraout Date: Sat, 13 Dec 2025 22:10:30 +0200 Subject: [PATCH 1/3] chore: fix release --- .github/workflows/release.yml | 2 +- .github/workflows/validate.yml | 58 +--------------------------------- 2 files changed, 2 insertions(+), 58 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8a71a54..a5045958 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,7 +102,7 @@ jobs: run: npm run build - name: 🚀 Release - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v6 with: semantic_version: 17 branches: | diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index f239c717..3a2c3929 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,16 +1,5 @@ name: validate on: - push: - branches: - # Match SemVer major release branches - # e.g. "12.x" or "8.x" - - '[0-9]+.x' - - 'main' - - 'next' - - 'next-major' - - 'beta' - - 'alpha' - - '!all-contributors/**' pull_request: concurrency: @@ -69,49 +58,4 @@ jobs: with: fail_ci_if_error: true flags: ${{ matrix.react }} - token: ${{ secrets.CODECOV_TOKEN }} - - release: - permissions: - actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action) - contents: write # to create release tags (cycjimmy/semantic-release-action) - issues: write # to post release that resolves an issue (cycjimmy/semantic-release-action) - - needs: main - runs-on: ubuntu-latest - if: - ${{ github.repository == 'testing-library/react-testing-library' && - github.event_name == 'push' }} - steps: - - name: ⬇️ Checkout repo - uses: actions/checkout@v4 - - - name: ⎔ Setup node - uses: actions/setup-node@v4 - with: - node-version: 14 - - - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - useLockFile: false - - - name: 🏗 Run build script - run: npm run build - - - name: 🚀 Release - uses: cycjimmy/semantic-release-action@v2 - with: - semantic_version: 17 - branches: | - [ - '+([0-9])?(.{+([0-9]),x}).x', - 'main', - 'next', - 'next-major', - {name: 'beta', prerelease: true}, - {name: 'alpha', prerelease: true} - ] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From 40c1cbeea88858f3c37c85254b31e66a771cb96f Mon Sep 17 00:00:00 2001 From: Matan Borenkraout Date: Sat, 13 Dec 2025 22:16:56 +0200 Subject: [PATCH 2/3] fix pipeline release --- .github/workflows/release.yml | 8 ++++---- .github/workflows/validate.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5045958..351469bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: false matrix: - node: [18, 20] + node: [18, 24] react: ['18.x', latest, canary, experimental] runs-on: ubuntu-latest steps: @@ -91,7 +91,7 @@ jobs: - name: ⎔ Setup node uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 24 - name: 📥 Download deps uses: bahmutov/npm-install@v1 @@ -102,9 +102,9 @@ jobs: run: npm run build - name: 🚀 Release - uses: cycjimmy/semantic-release-action@v6 + uses: cycjimmy/semantic-release-action@v5 with: - semantic_version: 17 + semantic_version: 25 branches: | [ '+([0-9])?(.{+([0-9]),x}).x', diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 3a2c3929..560f94b1 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - node: [18, 20] + node: [18, 24] react: ['18.x', latest, canary, experimental] runs-on: ubuntu-latest steps: From d8b4afb98fc16d0d1419d3a979410f42bd4b944f Mon Sep 17 00:00:00 2001 From: Matan Borenkraout Date: Sat, 13 Dec 2025 22:19:29 +0200 Subject: [PATCH 3/3] run format --- .github/workflows/validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 560f94b1..bc3f4823 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -58,4 +58,4 @@ jobs: with: fail_ci_if_error: true flags: ${{ matrix.react }} - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }}