Skip to content

Commit c12a08c

Browse files
committed
[actions] fix action working directories
1 parent 10a6d02 commit c12a08c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/node.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ jobs:
4040
- uses: ljharb/actions/node/install@main
4141
name: 'nvm install ${{ matrix.node-version }} && npm install'
4242
with:
43+
before_install: cd "packages/${{ matrix.package }}"
4344
node-version: ${{ matrix.node-version }}
45+
after_install: |
46+
npm install --no-save "eslint@${{ matrix.eslint }}"
47+
- run: node -pe "require('eslint/package.json').version"
48+
name: 'eslint version'
4449
- run: npm run travis
4550
- uses: codecov/codecov-action@v2
4651

@@ -74,9 +79,12 @@ jobs:
7479
- uses: ljharb/actions/node/install@main
7580
name: 'nvm install ${{ matrix.node-version }} && npm install'
7681
with:
82+
before_install: cd "packages/${{ matrix.package }}"
7783
node-version: ${{ matrix.node-version }}
7884
after_install: |
7985
npm install --no-save "eslint@${{ matrix.eslint }}"
86+
- run: node -pe "require('eslint/package.json').version"
87+
name: 'eslint version'
8088
- run: npm install --no-save "eslint-plugin-react-hooks@${{ matrix.react-hooks }}"
8189
if: ${{ matrix.react-hooks > 0}}
8290
- run: npm run travis
@@ -102,11 +110,14 @@ jobs:
102110
steps:
103111
- uses: actions/checkout@v2
104112
- uses: ljharb/actions/node/install@main
105-
name: 'nvm install ${{ matrix.node-version }} && npm install'
113+
name: 'nvm install lts/* && npm install'
106114
with:
115+
before_install: cd "packages/${{ matrix.package }}"
107116
node-version: lts/*
108117
after_install: |
109118
npm install --no-save "eslint@${{ matrix.eslint }}"
119+
- run: node -pe "require('eslint/package.json').version"
120+
name: 'eslint version'
110121
- run: npm run pretravis
111122
- run: npm run prepublish
112123
- run: npm run posttravis
@@ -136,13 +147,16 @@ jobs:
136147
steps:
137148
- uses: actions/checkout@v2
138149
- uses: ljharb/actions/node/install@main
139-
name: 'nvm install ${{ matrix.node-version }} && npm install'
150+
name: 'nvm install lts/* && npm install'
140151
with:
152+
before_install: cd "packages/${{ matrix.package }}"
141153
node-version: lts/*
142154
after_install: |
143155
npm install --no-save "eslint@${{ matrix.eslint }}"
144156
- run: npm install --no-save "eslint-plugin-react-hooks@${{ matrix.react-hooks }}"
145157
if: ${{ matrix.react-hooks > 0}}
158+
- run: node -pe "require('eslint/package.json').version"
159+
name: 'eslint version'
146160
- run: npm run pretravis
147161
- run: npm run prepublish
148162
- run: npm run posttravis

0 commit comments

Comments
 (0)