Skip to content

Commit 6172088

Browse files
committed
ci: update
1 parent d328956 commit 6172088

File tree

3 files changed

+49
-21
lines changed

3 files changed

+49
-21
lines changed

.github/workflows/CI.yml

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v5
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
2224
- name: Install Node.js
2325
uses: actions/setup-node@v6
26+
with:
27+
cache: pnpm
2428
- name: Install Packages
25-
run: npm install --legacy-peer-deps
29+
run: pnpm install --legacy-peer-deps
2630
- name: Lint
27-
run: npm run lint
31+
run: pnpm run lint
2832

2933
test:
3034
name: Test
@@ -35,46 +39,56 @@ jobs:
3539
steps:
3640
- name: Checkout
3741
uses: actions/checkout@v5
42+
- name: Install pnpm
43+
uses: pnpm/action-setup@v4
3844
- name: Install Node.js v${{ matrix.node }}
3945
uses: actions/setup-node@v6
4046
with:
4147
node-version: ${{ matrix.node }}
48+
cache: pnpm
4249
- name: Install Packages
43-
run: npm install
50+
run: pnpm install
4451
- name: Test
45-
run: npm test
52+
run: pnpm test
4653

4754
test-with-eslint-v8:
4855
name: Test with ESLint v8
4956
runs-on: ubuntu-latest
5057
steps:
5158
- name: Checkout
5259
uses: actions/checkout@v5
60+
- name: Install pnpm
61+
uses: pnpm/action-setup@v4
5362
- name: Install Node.js v18
5463
uses: actions/setup-node@v6
5564
with:
5665
node-version: 18
66+
cache: pnpm
5767
- name: Install Packages
58-
run: npm install
68+
run: pnpm install
5969
- name: Install ESLint v8
60-
run: npm install --save-dev eslint@8 --force
70+
run: pnpm install --save-dev eslint@8 --force
6171
- name: Test
62-
run: npm test
72+
run: pnpm test
6373

6474
test-without-eslint-stylistic:
6575
name: Test without ESLint Stylistic
6676
runs-on: ubuntu-latest
6777
steps:
6878
- name: Checkout
6979
uses: actions/checkout@v5
80+
- name: Install pnpm
81+
uses: pnpm/action-setup@v4
7082
- name: Install Node.js
7183
uses: actions/setup-node@v6
84+
with:
85+
cache: pnpm
7286
- name: Install Packages
73-
run: npm install
87+
run: pnpm install
7488
- name: Uninstall @stylistic/eslint-plugin
75-
run: npm uninstall @stylistic/eslint-plugin
89+
run: pnpm uninstall @stylistic/eslint-plugin
7690
- name: Test
77-
run: npm test
91+
run: pnpm test
7892

7993
test-with-old-eslint-stylistic:
8094
name: Test with old ESLint Stylistic
@@ -85,26 +99,34 @@ jobs:
8599
steps:
86100
- name: Checkout
87101
uses: actions/checkout@v5
102+
- name: Install pnpm
103+
uses: pnpm/action-setup@v4
88104
- name: Install Node.js
89105
uses: actions/setup-node@v6
106+
with:
107+
cache: pnpm
90108
- name: Install Packages
91-
run: npm install
109+
run: pnpm install
92110
- name: Install @stylistic/eslint-plugin v${{ matrix.stylistic }}
93-
run: npm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force
111+
run: pnpm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force
94112
- name: Test
95-
run: npm test
113+
run: pnpm test
96114

97115
test-with-typescript-eslint-v7:
98116
name: Test with typescript-eslint v7
99117
runs-on: ubuntu-latest
100118
steps:
101119
- name: Checkout
102120
uses: actions/checkout@v5
121+
- name: Install pnpm
122+
uses: pnpm/action-setup@v4
103123
- name: Install Node.js
104124
uses: actions/setup-node@v6
125+
with:
126+
cache: pnpm
105127
- name: Install Packages
106-
run: npm install
128+
run: pnpm install
107129
- name: Install @typescript-eslint/parser v7
108-
run: npm install -D @typescript-eslint/parser@7 --force
130+
run: pnpm install -D @typescript-eslint/parser@7 --force
109131
- name: Test
110-
run: npm test
132+
run: pnpm test

.github/workflows/Release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ jobs:
2020
steps:
2121
- name: Checkout Repo
2222
uses: actions/checkout@v5
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
2325
- name: Setup Node.js
2426
uses: actions/setup-node@v6
2527
with:
2628
node-version: 24
29+
cache: pnpm
2730
- name: Install Dependencies
28-
run: npm install
31+
run: pnpm install
2932

3033
- name: Create Release Pull Request or Publish to npm
3134
id: changesets
3235
uses: changesets/action@v1
3336
with:
34-
version: npm run changeset:version
35-
publish: npm run changeset:publish
37+
version: pnpm run changeset:version
38+
publish: pnpm run changeset:publish
3639
env:
3740
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/check-for-resources-update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v5
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
1820
- name: Install Node.js
1921
uses: actions/setup-node@v6
2022
with:
2123
node-version: 18
24+
cache: pnpm
2225
- name: Install Packages
23-
run: npm install
26+
run: pnpm install
2427
- name: Update
25-
run: npm run update-resources
28+
run: pnpm run update-resources
2629
- uses: peter-evans/create-pull-request@v7
2730
with:
2831
commit-message: Updates resources

0 commit comments

Comments
 (0)