From f7eb58da8b707e84f4abb64d86b5813673c72285 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Thu, 5 Nov 2026 17:04:36 +0000 Subject: [PATCH] Hide the compiler's Yarn config from the website in Publish The website is checked out inside this repository, so its Yarn 4.13 also read our .yarnrc.yml and failed on `approvedGitRepositories` (added in #8890). That stopped the 13.0.0-alpha.7 run after the npm publish, before the API docs and the playground hook. Move the file away once the compiler steps are done. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F Signed-off-by: Christoph Knittel --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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