Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to Node.js v22.x (LTS) and enable Corepack #4414

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading