Skip to content

Commit

Permalink
chore: upgrade to Node.js v22.x (LTS) and enable Corepack
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Koops <[email protected]>
  • Loading branch information
jonkoops committed Dec 11, 2024
1 parent 53d2298 commit 682d68a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 28 deletions.
12 changes: 3 additions & 9 deletions .github/workflows-src/partials/build.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 682d68a

Please sign in to comment.