Skip to content

Commit

Permalink
Install prettier directly
Browse files Browse the repository at this point in the history
This removes a dependency on our project NPM setup for this CI job.
Configuring NPM and installing our dependencies currently takes over
half this CI job runs for so it'll be interesting to see if this speeds
that up any.
  • Loading branch information
ian-noaa committed Oct 23, 2023
1 parent 0e835e7 commit 8cc8abf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install dependencies
run: npm ci
run: npm install prettier
- name: Lint
run: npm run lint:prettier:docs
run: npx prettier --check **/*.md

0 comments on commit 8cc8abf

Please sign in to comment.