feat: Remove yarn in favor pnpm #4074
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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:pnpm install --immutable | |
# build | |
- uses: actions/cache@v4 | |
id: site-cache | |
name: Load webpack cache | |
with: | |
path: "packages/documentation-site/.cache" | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- run:pnpm build | |
name: Build docs | |
- run: node .github/upload-preview.js build/patternfly-org/site site | |
name: Upload docs |