File tree 3 files changed +29
-20
lines changed
3 files changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -23,28 +23,31 @@ permissions:
23
23
24
24
jobs :
25
25
publish :
26
- name : Publish NPM package
26
+ name : Publish package
27
27
runs-on : ubuntu-latest
28
28
# Avoid publishing in forks
29
29
if : github.repository == 'testing-library/eslint-plugin-testing-library'
30
30
steps :
31
31
- name : Checkout
32
32
uses : actions/checkout@v4
33
33
34
+ - name : Install pnpm
35
+ uses : pnpm/action-setup@v4
36
+
34
37
- name : Set up Node
35
38
uses : actions/setup-node@v4
36
39
with :
37
- cache : npm
40
+ cache : ' pnpm '
38
41
node-version-file : ' .nvmrc'
39
42
40
43
- name : Install dependencies
41
- run : npm install
44
+ run : pnpm install
42
45
43
46
- name : Build package
44
- run : npm run build
47
+ run : pnpm run build
45
48
46
49
- name : Release new version
47
- run : npx semantic-release
50
+ run : pnpm exec semantic-release
48
51
env :
49
52
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
53
NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change @@ -14,19 +14,23 @@ jobs:
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
16
17
+ - name : Install pnpm
18
+ uses : pnpm/action-setup@v4
19
+
17
20
- name : Use Node
18
21
uses : actions/setup-node@v4
19
22
with :
23
+ cache : ' pnpm'
20
24
node-version-file : ' .nvmrc'
21
25
22
26
- run : |
23
- npm install
24
- npm run build
27
+ pnpm install
28
+ pnpm run build
25
29
26
- - run : npm link
30
+ - run : pnpm link
27
31
working-directory : ./dist
28
32
29
- - run : npm link eslint-plugin-testing-library
33
+ - run : pnpm link eslint-plugin-testing-library
30
34
31
35
- uses : AriPerkkio/eslint-remote-tester-run-action@v4
32
36
with :
Original file line number Diff line number Diff line change @@ -16,17 +16,20 @@ jobs:
16
16
- name : Checkout
17
17
uses : actions/checkout@v4
18
18
19
+ - name : Install pnpm
20
+ uses : pnpm/action-setup@v4
21
+
19
22
- name : Set up Node
20
23
uses : actions/setup-node@v4
21
24
with :
22
- cache : npm
25
+ cache : ' pnpm '
23
26
node-version-file : ' .nvmrc'
24
27
25
28
- name : Install dependencies
26
- run : npm install
29
+ run : pnpm install
27
30
28
31
- name : Run script
29
- run : npm run ${{ matrix.validation-script }}
32
+ run : pnpm run ${{ matrix.validation-script }}
30
33
31
34
tests :
32
35
name : Tests (Node v${{ matrix.node }} - ESLint v${{ matrix.eslint }})
@@ -41,24 +44,23 @@ jobs:
41
44
- name : Checkout
42
45
uses : actions/checkout@v4
43
46
47
+ - name : Install pnpm
48
+ uses : pnpm/action-setup@v4
49
+
44
50
- name : Set up Node
45
51
uses : actions/setup-node@v4
46
52
with :
47
- cache : npm
53
+ cache : ' pnpm '
48
54
node-version : ${{ matrix.node }}
49
55
50
56
- 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
56
58
57
59
- name : Install ESLint v${{ matrix.eslint }}
58
- run : npm install --no-save --force eslint@${{ matrix.eslint }}
60
+ run : pnpm add eslint@${{ matrix.eslint }}
59
61
60
62
- name : Run tests
61
- run : npm run test:ci
63
+ run : pnpm run test:ci
62
64
63
65
- name : Upload coverage reports to Codecov
64
66
uses : codecov/codecov-action@v5
You can’t perform that action at this time.
0 commit comments