Skip to content

Commit 7c5e704

Browse files
cknittclaude
andauthored
Hide the compiler's Yarn config from the website in Publish (#9236)
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. Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F Signed-off-by: Christoph Knittel <ck@cca.io> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f2b9db2 commit 7c5e704

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ jobs:
179179
shell: bash
180180
working-directory: rescript-lang.org
181181

182+
# The website is checked out inside this repository, so its Yarn also
183+
# reads this repository's .yarnrc.yml and rejects the settings it does
184+
# not know yet. The steps that need this config are done.
185+
- name: Hide the compiler's Yarn config from the website
186+
if: steps.api-docs-diff.outputs.changed == 'true'
187+
run: mv .yarnrc.yml "$RUNNER_TEMP/rescript.yarnrc.yml"
188+
shell: bash
189+
182190
- name: Use Node.js for website
183191
if: steps.api-docs-diff.outputs.changed == 'true'
184192
uses: actions/setup-node@v7

0 commit comments

Comments
 (0)