mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-28 19:06:12 +01:00
7e38d6bae1
Upgrades workflows, nvmrc and package.json to use Node 20.
27 lines
945 B
YAML
27 lines
945 B
YAML
name: PR -> Build Docs
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- website/**
|
|
|
|
jobs:
|
|
validate:
|
|
name: build # temporary solution to trick branch protection rules
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build docs
|
|
env:
|
|
UNLEASH_FEEDBACK_TARGET_URL: ${{ secrets.DOCS_FEEDBACK_TARGET_URL }}
|
|
UNLEASH_PROXY_CLIENT_KEY: ${{ secrets.UNLEASH_PROXY_CLIENT_KEY_DEVELOPMENT }}
|
|
UNLEASH_PROXY_URL: ${{ secrets.UNLEASH_PROXY_URL_DEVELOPMENT }}
|
|
run: |
|
|
# Build the site
|
|
cd website && yarn
|
|
# give better error messages when the build fails (refer to website/readme.md#troubleshooting)
|
|
echo "Removing references to chalk in node_modules/@docusaurus/core/lib/client/serverEntry.js"
|
|
sed -i 's/chalk\(\w\|\.\)\+//g' node_modules/@docusaurus/core/lib/client/serverEntry.js
|
|
echo "Chalk removed"
|
|
yarn build
|