Skip to content

Commit f2578cb

Browse files
committed
ci: update gh actions to use corepack
1 parent 22f6797 commit f2578cb

File tree

5 files changed

+40
-126
lines changed

5 files changed

+40
-126
lines changed

.github/workflows/nightly.yml

+8-26
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v2
17-
18-
- name: Install node
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 22
22-
23-
- name: Install pnpm
24-
uses: pnpm/action-setup@v4.0.0
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
15+
- name: Set alternate npm integrity keys
2816
run: |
29-
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
30-
31-
- name: Cache pnpm modules
32-
uses: actions/cache@v4
17+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
18+
- uses: actions/checkout@v4
19+
- run: corepack enable
20+
- uses: actions/setup-node@v4
3321
with:
34-
path: |
35-
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
36-
~/.cache/Cypress
37-
key: pnpm-v1-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
38-
restore-keys: |
39-
pnpm-v1-${{ runner.os }}-
40-
41-
- name: Install dependencies
42-
run: pnpm install
22+
node-version: 23
23+
cache: pnpm
24+
- run: pnpm install
4325

4426
- name: Build
4527
run: pnpm build

.github/workflows/test-e2e-composable.yml

+8-25
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,16 @@ jobs:
2323
dir: ./packages/test-e2e-composable-vue3
2424

2525
steps:
26-
- uses: actions/checkout@v4
27-
28-
- name: Install node
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: 22
32-
33-
- name: Install pnpm
34-
uses: pnpm/action-setup@v4.0.0
35-
36-
- name: Get pnpm store directory
37-
id: pnpm-cache
26+
- name: Set alternate npm integrity keys
3827
run: |
39-
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
40-
41-
- name: Cache pnpm modules
42-
uses: actions/cache@v4
28+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
29+
- uses: actions/checkout@v4
30+
- run: corepack enable
31+
- uses: actions/setup-node@v4
4332
with:
44-
path: |
45-
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
46-
~/.cache/Cypress
47-
key: pnpm-v1-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
48-
restore-keys: |
49-
pnpm-v1-${{ runner.os }}-
50-
51-
- name: Install dependencies
52-
run: pnpm install
33+
node-version: 23
34+
cache: pnpm
35+
- run: pnpm install
5336

5437
- name: Build
5538
run: pnpm run build

.github/workflows/test-e2e-options.yml

+8-25
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,16 @@ jobs:
2323
dir: ./packages/test-e2e
2424

2525
steps:
26-
- uses: actions/checkout@v4
27-
28-
- name: Install node
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: 22
32-
33-
- name: Install pnpm
34-
uses: pnpm/action-setup@v4.0.0
35-
36-
- name: Get pnpm store directory
37-
id: pnpm-cache
26+
- name: Set alternate npm integrity keys
3827
run: |
39-
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
40-
41-
- name: Cache pnpm modules
42-
uses: actions/cache@v4
28+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
29+
- uses: actions/checkout@v4
30+
- run: corepack enable
31+
- uses: actions/setup-node@v4
4332
with:
44-
path: |
45-
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
46-
~/.cache/Cypress
47-
key: pnpm-v1-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
48-
restore-keys: |
49-
pnpm-v1-${{ runner.os }}-
50-
51-
- name: Install dependencies
52-
run: pnpm install
33+
node-version: 23
34+
cache: pnpm
35+
- run: pnpm install
5336

5437
- name: Build
5538
run: pnpm run build

.github/workflows/test-e2e-ssr.yml

+8-25
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,16 @@ jobs:
2323
dir: ./packages/test-e2e-ssr
2424

2525
steps:
26-
- uses: actions/checkout@v4
27-
28-
- name: Install node
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: 22
32-
33-
- name: Install pnpm
34-
uses: pnpm/action-setup@v4.0.0
35-
36-
- name: Get pnpm store directory
37-
id: pnpm-cache
26+
- name: Set alternate npm integrity keys
3827
run: |
39-
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
40-
41-
- name: Cache pnpm modules
42-
uses: actions/cache@v4
28+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
29+
- uses: actions/checkout@v4
30+
- run: corepack enable
31+
- uses: actions/setup-node@v4
4332
with:
44-
path: |
45-
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
46-
~/.cache/Cypress
47-
key: pnpm-v1-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
48-
restore-keys: |
49-
pnpm-v1-${{ runner.os }}-
50-
51-
- name: Install dependencies
52-
run: pnpm install
33+
node-version: 23
34+
cache: pnpm
35+
- run: pnpm install
5336

5437
- name: Build
5538
run: pnpm run build

.github/workflows/test.yml

+8-25
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,16 @@ jobs:
2020
name: Build and test
2121

2222
steps:
23-
- uses: actions/checkout@v4
24-
25-
- name: Install node
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: 22
29-
30-
- name: Install pnpm
31-
uses: pnpm/action-setup@v4.0.0
32-
33-
- name: Get pnpm store directory
34-
id: pnpm-cache
23+
- name: Set alternate npm integrity keys
3524
run: |
36-
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
37-
38-
- name: Cache pnpm modules
39-
uses: actions/cache@v4
25+
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
26+
- uses: actions/checkout@v4
27+
- run: corepack enable
28+
- uses: actions/setup-node@v4
4029
with:
41-
path: |
42-
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
43-
~/.cache/Cypress
44-
key: pnpm-v1-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
45-
restore-keys: |
46-
pnpm-v1-${{ runner.os }}-
47-
48-
- name: Install dependencies
49-
run: pnpm install
30+
node-version: 23
31+
cache: pnpm
32+
- run: pnpm install
5033

5134
- name: Lint
5235
run: pnpm run lint

0 commit comments

Comments
 (0)