diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb3be6c787..8bf21beadc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -179,6 +179,14 @@ jobs: shell: bash working-directory: rescript-lang.org + # The website is checked out inside this repository, so its Yarn also + # reads this repository's .yarnrc.yml and rejects the settings it does + # not know yet. The steps that need this config are done. + - name: Hide the compiler's Yarn config from the website + if: steps.api-docs-diff.outputs.changed == 'true' + run: mv .yarnrc.yml "$RUNNER_TEMP/rescript.yarnrc.yml" + shell: bash + - name: Use Node.js for website if: steps.api-docs-diff.outputs.changed == 'true' uses: actions/setup-node@v7