Skip to content

chore: upgrade Yarn to the latest version (#4413) #1066

chore: upgrade Yarn to the latest version (#4413)

chore: upgrade Yarn to the latest version (#4413) #1066

Workflow file for this run

### WARNING -- this file was generated by generate-workflows
name: release
on:
push:
branches:
- main
jobs:
build-deploy:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_REDALLEN }} # needs to be an admin token to get around branch protection
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
steps:
- run: printenv
- uses: actions/checkout@v2
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@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
# v6 build
- uses: actions/cache@v2
id: site-cache
name: Load webpack cache
with:
path: "packages/documentation-site/.cache"
key: ${{ runner.os }}-site-${{ hashFiles('yarn.lock') }}
- run: yarn build
name: Build docs
- run: .github/release.sh
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY}}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- run: node scripts/writeVersionRedirects.js
- run: node scripts/writeVersionPrefix.js
- run: du -sh build/patternfly-org/*
name: Check size of docs
- run: .github/upload-staging.sh
name: Upload docs to staging
- run: yarn build:extensions
name: Build extension docs
- name: Upload extension only docs
uses: dswistowski/surge-sh-action@v1
with:
domain: 'v6-extensions-staging.patternfly.org'
project: 'build/patternfly-org/site'
login: ${{ secrets.SURGE_LOGIN }}
token: ${{ secrets.SURGE_TOKEN }}