Skip to content

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

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

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

Workflow file for this run

### WARNING -- this file was generated by generate-workflows
name: pr-preview
on: pull_request_target
jobs:
build-upload:
runs-on: ubuntu-latest
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/checkout@v2
# Yes, we really want to checkout the PR
- run: |
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
# Injected by generate-workflows.js
- uses: actions/setup-node@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --frozen-lockfile
# build
- uses: actions/cache@v2
id: site-cache
name: Load webpack cache
with:
path: "packages/documentation-site/.cache"
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn build
name: Build docs
- run: node .github/upload-preview.js build/patternfly-org/site site
name: Upload docs