Repository navigation
Hide the compiler's Yarn config from the website in Publish - #9236
Merged
Merged
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F Signed-off-by: Christoph Knittel <ck@cca.io>
ChangelogNo changelog entry. Semantic Diff1 commit · Full page Hide the compiler's Yarn config from the website in Publishf7eb58d · cknitt + Claude · Nov 05, 2026, 17:04 UTC The website is checked out inside this repository, so its Yarn 4.13 also read our .yarnrc.yml and failed on |
fhammerschmidt
approved these changes
Nov 5, 2026
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9236 |
3 of 4 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 13.0.0-alpha.7 Publish run failed in "Use Node.js for website", after the npm publish:
The website is checked out inside this repository (
rescript-lang.org/). Yarn merges every.yarnrc.ymlfrom the working directory up to the root, so the website's Yarn 4.13.0 also reads ours, and #8890 addedapprovedGitRepositoriesto it, which Yarn 4.13 doesn't know. Building the website and publishing the API docs were skipped, and so was the Cloudflare playground hook.The new step moves our
.yarnrc.ymlto$RUNNER_TEMPbefore the website steps. No later step needs it: the post step of oursetup-nodetakes its cache paths from the saved state and doesn't run Yarn. This also covers future settings that the website's Yarn doesn't support yet.Reproduced locally with the website's
v13branch below a copy of our.yarnrc.yml:yarn config get cacheFolderfails with the same error, and succeeds once the file is moved away.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F