Skip to content

Commit ab7e194

Browse files
committed
chore(github): update workflows
1 parent eddcead commit ab7e194

File tree

2 files changed

+18
-50
lines changed

2 files changed

+18
-50
lines changed

.github/workflows/ci-dev.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,20 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest] # macos-latest, windows-latest
18-
node: [18]
18+
node: [22]
1919

2020
steps:
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node }}
24-
25-
- name: checkout
26-
uses: actions/checkout@master
21+
- name: Checkout
22+
uses: actions/checkout@v4
2723

28-
- uses: pnpm/action-setup@v2
29-
name: Install pnpm
30-
id: pnpm-install
31-
with:
32-
version: 7
33-
run_install: false
34-
35-
- name: Get pnpm store directory
36-
id: pnpm-cache
37-
shell: bash
38-
run: |
39-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
4026

41-
- uses: actions/cache@v4
42-
name: Setup pnpm cache
27+
- name: Install node
28+
uses: actions/setup-node@v4
4329
with:
44-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46-
restore-keys: |
47-
${{ runner.os }}-pnpm-store-
30+
node-version: ${{ matrix.node }}
31+
cache: pnpm
4832

4933
- name: Install dependencies
5034
run: pnpm install

.github/workflows/ci.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,20 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest] # macos-latest, windows-latest
18-
node: [18]
18+
node: [22]
1919

2020
steps:
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node }}
24-
25-
- name: checkout
26-
uses: actions/checkout@master
21+
- name: Checkout
22+
uses: actions/checkout@v4
2723

28-
- uses: pnpm/action-setup@v2
29-
name: Install pnpm
30-
id: pnpm-install
31-
with:
32-
version: 7
33-
run_install: false
34-
35-
- name: Get pnpm store directory
36-
id: pnpm-cache
37-
shell: bash
38-
run: |
39-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
4026

41-
- uses: actions/cache@v4
42-
name: Setup pnpm cache
27+
- name: Install node
28+
uses: actions/setup-node@v4
4329
with:
44-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46-
restore-keys: |
47-
${{ runner.os }}-pnpm-store-
30+
node-version: ${{ matrix.node }}
31+
cache: pnpm
4832

4933
- name: Install dependencies
5034
run: pnpm install

0 commit comments

Comments
 (0)