Skip to content

Commit 148d97c

Browse files
authored
Merge pull request #615 from semantic-release/corepack
2 parents 0c12d5b + 5655b18 commit 148d97c

File tree

4 files changed

+9752
-4131
lines changed

4 files changed

+9752
-4131
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
cache: npm
2525
node-version: lts/*
2626
- run: npm clean-install
27-
- run: npm audit signatures
27+
- run: corepack npm audit signatures
2828
- run: npx semantic-release
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@ name: Test
88
types:
99
- opened
1010
- synchronize
11+
12+
permissions:
13+
contents: read
14+
15+
env:
16+
FORCE_COLOR: 1
17+
NPM_CONFIG_COLOR: always
18+
1119
jobs:
1220
test_matrix:
1321
strategy:
1422
matrix:
1523
node-version:
16-
- 18.17.0
17-
- 20.6.1
18-
- 20
24+
- 20.8.1
25+
- 21
1926
os:
2027
- ubuntu-latest
2128
runs-on: "${{ matrix.os }}"
@@ -27,22 +34,27 @@ jobs:
2734
node-version: "${{ matrix.node-version }}"
2835
cache: npm
2936
- run: npm clean-install
30-
- name: Ensure dependencies are compatible with the engines range
31-
run: npx ls-engines
32-
- run: "npm run test:ci"
33-
test:
37+
- run: corepack npm audit signatures
38+
- run: npm test
39+
40+
test_dev:
3441
runs-on: ubuntu-latest
35-
needs: test_matrix
36-
if: ${{ always() }}
3742
steps:
3843
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39-
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
44+
- name: "Use development Node.js version"
45+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4046
with:
41-
node-version: lts/*
47+
node-version-file: .nvmrc
4248
cache: npm
4349
- run: npm clean-install
44-
- run: npm audit signatures
45-
- run: npm run lint
50+
- run: corepack npm audit signatures
51+
- run: npm test
52+
53+
test:
54+
runs-on: ubuntu-latest
55+
needs: test_matrix
56+
if: ${{ !cancelled() }}
57+
steps:
4658
- name: All matrix versions passed
4759
if: ${{ !(contains(needs.*.result, 'failure')) }}
4860
run: exit 0

0 commit comments

Comments
 (0)