Skip to content

Commit 751eb91

Browse files
committed
make sure vale is in path
1 parent a1d219e commit 751eb91

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/production.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,15 @@ jobs:
4141
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
4242
- name: Install dependencies
4343
run: npm install
44+
- name: Install vale
45+
run: |
46+
curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s v2.4.0
47+
export PATH="./bin:$PATH"
48+
vale -v
4449
- name: Run linter
4550
run: |
4651
npm run lint
52+
export PATH="./bin:$PATH"
4753
npm run lint:prose
4854
build:
4955
runs-on: ubuntu-latest
@@ -64,11 +70,6 @@ jobs:
6470
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
6571
- name: Install dependencies
6672
run: npm install
67-
- name: Install vale
68-
run: |
69-
curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s v2.4.0
70-
export PATH="./bin:$PATH"
71-
vale -v
7273
- name: Build project
7374
run: npm run build
7475
- name: Upload artifact

.github/workflows/staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
- name: Run linter
4949
run: |
5050
npm run lint
51+
export PATH="./bin:$PATH"
5152
npm run lint:prose
5253
build:
5354
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)