From 8cc8abfe6b3a1c31f0a2bceca4bee39917f11826 Mon Sep 17 00:00:00 2001 From: Ian McGinnis <67600557+ian-noaa@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:14:39 -0600 Subject: [PATCH] Install prettier directly 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. --- .github/workflows/docs.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b7c85ab8..070cd982 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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