File tree Expand file tree Collapse file tree 3 files changed +29
-20
lines changed Expand file tree Collapse file tree 3 files changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -23,28 +23,31 @@ permissions:
2323
2424jobs :
2525 publish :
26- name : Publish NPM package
26+ name : Publish package
2727 runs-on : ubuntu-latest
2828 # Avoid publishing in forks
2929 if : github.repository == 'testing-library/eslint-plugin-testing-library'
3030 steps :
3131 - name : Checkout
3232 uses : actions/checkout@v4
3333
34+ - name : Install pnpm
35+ uses : pnpm/action-setup@v4
36+
3437 - name : Set up Node
3538 uses : actions/setup-node@v4
3639 with :
37- cache : npm
40+ cache : ' pnpm '
3841 node-version-file : ' .nvmrc'
3942
4043 - name : Install dependencies
41- run : npm install
44+ run : pnpm install
4245
4346 - name : Build package
44- run : npm run build
47+ run : pnpm run build
4548
4649 - name : Release new version
47- run : npx semantic-release
50+ run : pnpm exec semantic-release
4851 env :
4952 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5053 NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change @@ -14,19 +14,23 @@ jobs:
1414 - name : Checkout
1515 uses : actions/checkout@v4
1616
17+ - name : Install pnpm
18+ uses : pnpm/action-setup@v4
19+
1720 - name : Use Node
1821 uses : actions/setup-node@v4
1922 with :
23+ cache : ' pnpm'
2024 node-version-file : ' .nvmrc'
2125
2226 - run : |
23- npm install
24- npm run build
27+ pnpm install
28+ pnpm run build
2529
26- - run : npm link
30+ - run : pnpm link
2731 working-directory : ./dist
2832
29- - run : npm link eslint-plugin-testing-library
33+ - run : pnpm link eslint-plugin-testing-library
3034
3135 - uses : AriPerkkio/eslint-remote-tester-run-action@v4
3236 with :
Original file line number Diff line number Diff line change @@ -16,17 +16,20 @@ jobs:
1616 - name : Checkout
1717 uses : actions/checkout@v4
1818
19+ - name : Install pnpm
20+ uses : pnpm/action-setup@v4
21+
1922 - name : Set up Node
2023 uses : actions/setup-node@v4
2124 with :
22- cache : npm
25+ cache : ' pnpm '
2326 node-version-file : ' .nvmrc'
2427
2528 - name : Install dependencies
26- run : npm install
29+ run : pnpm install
2730
2831 - name : Run script
29- run : npm run ${{ matrix.validation-script }}
32+ run : pnpm run ${{ matrix.validation-script }}
3033
3134 tests :
3235 name : Tests (Node v${{ matrix.node }} - ESLint v${{ matrix.eslint }})
@@ -41,24 +44,23 @@ jobs:
4144 - name : Checkout
4245 uses : actions/checkout@v4
4346
47+ - name : Install pnpm
48+ uses : pnpm/action-setup@v4
49+
4450 - name : Set up Node
4551 uses : actions/setup-node@v4
4652 with :
47- cache : npm
53+ cache : ' pnpm '
4854 node-version : ${{ matrix.node }}
4955
5056 - name : Install dependencies
51- run : npm install
52-
53- # see https://github.com/npm/cli/issues/7349
54- - if : ${{ matrix.eslint == 9 }}
55- run : npm un @typescript-eslint/eslint-plugin eslint-plugin-jest eslint-doc-generator
57+ run : pnpm install
5658
5759 - name : Install ESLint v${{ matrix.eslint }}
58- run : npm install --no-save --force eslint@${{ matrix.eslint }}
60+ run : pnpm add eslint@${{ matrix.eslint }}
5961
6062 - name : Run tests
61- run : npm run test:ci
63+ run : pnpm run test:ci
6264
6365 - name : Upload coverage reports to Codecov
6466 uses : codecov/codecov-action@v5
You can’t perform that action at this time.
0 commit comments