From 682d68acd063346f6ea1db6d25d79e52f2359f26 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Wed, 11 Dec 2024 17:32:41 +0100 Subject: [PATCH] chore: upgrade to Node.js v22.x (LTS) and enable Corepack Signed-off-by: Jon Koops --- .github/workflows-src/partials/build.yml | 12 +++--------- .github/workflows/pr-preview.yml | 12 +++--------- .github/workflows/release.yml | 12 +++--------- README.md | 2 +- 4 files changed, 10 insertions(+), 28 deletions(-) diff --git a/.github/workflows-src/partials/build.yml b/.github/workflows-src/partials/build.yml index 27d41663d7..415254d0ee 100644 --- a/.github/workflows-src/partials/build.yml +++ b/.github/workflows-src/partials/build.yml @@ -1,14 +1,8 @@ -- uses: actions/setup-node@v1 +- uses: actions/setup-node@v4 with: - node-version: "20" -- uses: actions/cache@v2 - id: yarn-cache - name: Load npm deps from cache - with: - path: "**/node_modules" - key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }} + node-version: 22 +- run: corepack enable - run: yarn install --frozen-lockfile - if: steps.yarn-cache.outputs.cache-hit != 'true' # v5 build - uses: actions/cache@v2 id: site-cache diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index bfb339ce28..fd3567f69f 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -16,17 +16,11 @@ jobs: git fetch origin pull/$GH_PR_NUM/head:tmp git checkout tmp # Injected by generate-workflows.js - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: - node-version: "20" - - uses: actions/cache@v2 - id: yarn-cache - name: Load npm deps from cache - with: - path: "**/node_modules" - key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }} + node-version: 22 + - run: corepack enable - run: yarn install --frozen-lockfile - if: steps.yarn-cache.outputs.cache-hit != 'true' # build - uses: actions/cache@v2 id: site-cache diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d087ac109..b14a4fed10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,17 +19,11 @@ jobs: with: token: ${{ secrets.GH_TOKEN_REDALLEN }} # needs to be an admin token to get around branch protection # Injected by generate-workflows.js - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: - node-version: "20" - - uses: actions/cache@v2 - id: yarn-cache - name: Load npm deps from cache - with: - path: "**/node_modules" - key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }} + node-version: 22 + - run: corepack enable - run: yarn install --frozen-lockfile - if: steps.yarn-cache.outputs.cache-hit != 'true' # v6 build - uses: actions/cache@v2 id: site-cache diff --git a/README.md b/README.md index d6c0767381..21677ef326 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The PatternFly Org is the source for the official documentation for PatternFly. Development setup requires yarn. If you do not already have yarn installed on your system, see https://yarnpkg.com/en/. -A Node version greater than 18.16.0 is also required. +A Node version 22 or greater is also required. ### Live Reload Server