Skip to content

Commit 22b8c28

Browse files
authored
chore: fix release (#1435)
* chore: fix release * fix pipeline release * run format
1 parent d996673 commit 22b8c28

File tree

2 files changed

+5
-61
lines changed

2 files changed

+5
-61
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
node: [18, 20]
34+
node: [18, 24]
3535
react: ['18.x', latest, canary, experimental]
3636
runs-on: ubuntu-latest
3737
steps:
@@ -91,7 +91,7 @@ jobs:
9191
- name: ⎔ Setup node
9292
uses: actions/setup-node@v4
9393
with:
94-
node-version: 14
94+
node-version: 24
9595

9696
- name: 📥 Download deps
9797
uses: bahmutov/npm-install@v1
@@ -102,9 +102,9 @@ jobs:
102102
run: npm run build
103103

104104
- name: 🚀 Release
105-
uses: cycjimmy/semantic-release-action@v2
105+
uses: cycjimmy/semantic-release-action@v5
106106
with:
107-
semantic_version: 17
107+
semantic_version: 25
108108
branches: |
109109
[
110110
'+([0-9])?(.{+([0-9]),x}).x',

.github/workflows/validate.yml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
name: validate
22
on:
3-
push:
4-
branches:
5-
# Match SemVer major release branches
6-
# e.g. "12.x" or "8.x"
7-
- '[0-9]+.x'
8-
- 'main'
9-
- 'next'
10-
- 'next-major'
11-
- 'beta'
12-
- 'alpha'
13-
- '!all-contributors/**'
143
pull_request:
154

165
concurrency:
@@ -29,7 +18,7 @@ jobs:
2918
strategy:
3019
fail-fast: false
3120
matrix:
32-
node: [18, 20]
21+
node: [18, 24]
3322
react: ['18.x', latest, canary, experimental]
3423
runs-on: ubuntu-latest
3524
steps:
@@ -70,48 +59,3 @@ jobs:
7059
fail_ci_if_error: true
7160
flags: ${{ matrix.react }}
7261
token: ${{ secrets.CODECOV_TOKEN }}
73-
74-
release:
75-
permissions:
76-
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
77-
contents: write # to create release tags (cycjimmy/semantic-release-action)
78-
issues: write # to post release that resolves an issue (cycjimmy/semantic-release-action)
79-
80-
needs: main
81-
runs-on: ubuntu-latest
82-
if:
83-
${{ github.repository == 'testing-library/react-testing-library' &&
84-
github.event_name == 'push' }}
85-
steps:
86-
- name: ⬇️ Checkout repo
87-
uses: actions/checkout@v4
88-
89-
- name: ⎔ Setup node
90-
uses: actions/setup-node@v4
91-
with:
92-
node-version: 14
93-
94-
- name: 📥 Download deps
95-
uses: bahmutov/npm-install@v1
96-
with:
97-
useLockFile: false
98-
99-
- name: 🏗 Run build script
100-
run: npm run build
101-
102-
- name: 🚀 Release
103-
uses: cycjimmy/semantic-release-action@v2
104-
with:
105-
semantic_version: 17
106-
branches: |
107-
[
108-
'+([0-9])?(.{+([0-9]),x}).x',
109-
'main',
110-
'next',
111-
'next-major',
112-
{name: 'beta', prerelease: true},
113-
{name: 'alpha', prerelease: true}
114-
]
115-
env:
116-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)