chore(deps): bump nathanvaughn/actions-cloudflare-purge from 3ae45672b053b6e981788270206025fb3358d502 to e0eca002a6d4e05a974d8eadaf0909776df25ce3 in /.github/workflows #316
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
name: Test docs-site yarn installation | |
on: | |
push: | |
branches: | |
- ci | |
pull_request: | |
jobs: | |
build-docs: | |
name: Build documentation site | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- uses: actions/checkout@v4 | |
- name: Setup yarn 2.0 | |
run: | | |
corepack enable | |
corepack prepare yarn@stable --activate | |
yarn --version | |
#- name: Get yarn cache directory path | |
# id: yarn-cache-dir-path | |
# run: echo "dir=$(cd docs-site~; yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
if: false | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-site-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-site- | |
- name: Build CF site | |
run: | | |
cd docs-site~ | |
YARN_ENABLE_HARDENED_MODE=0 YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install | |
- name: Display diff on failure | |
if: ${{ failure() }} | |
run: | | |
cd docs-site~ | |
env | |
YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install && git diff | |