From aedebe677b8966362b31d621fa4bb1c1d64b5648 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Mon, 9 Dec 2024 23:38:52 -0300 Subject: [PATCH] ci: latest node versions and proper cache --- .github/workflows/pages.yml | 5 +++-- .github/workflows/prettier.yml | 4 ++-- .github/workflows/{renovate.yml => renovate-validate.yml} | 0 3 files changed, 5 insertions(+), 4 deletions(-) rename .github/workflows/{renovate.yml => renovate-validate.yml} (100%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 731cfb7..f71635f 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -16,10 +16,11 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: latest + cache: npm - name: Install dependencies - run: npm i + run: npm ci - name: Build website run: npm run build diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 8bf8245..4a34e8a 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -5,7 +5,7 @@ on: jobs: build: - name: Build Docusaurus + name: Check highlighting with Prettier runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -13,7 +13,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: latest - name: Install dependencies run: sudo npm install -g prettier diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate-validate.yml similarity index 100% rename from .github/workflows/renovate.yml rename to .github/workflows/renovate-validate.yml