Skip to content

Hide the compiler's Yarn config from the website in Publish - #9236

Merged
cknitt merged 1 commit into
masterfrom
publish-website-yarnrc
Nov 5, 2026
Merged

cknitt merged 1 commit into
masterfrom
publish-website-yarnrc

Conversation

@cknitt

@cknitt cknitt commented Nov 5, 2026

Copy link
Copy Markdown
Member

The 13.0.0-alpha.7 Publish run failed in "Use Node.js for website", after the npm publish:

Usage Error: Unrecognized or legacy configuration settings found: approvedGitRepositories
(in .../rescript/.yarnrc.yml, .../rescript/rescript-lang.org/.yarnrc.yml)

The website is checked out inside this repository (rescript-lang.org/). Yarn merges every .yarnrc.yml from the working directory up to the root, so the website's Yarn 4.13.0 also reads ours, and #8890 added approvedGitRepositories to 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.yml to $RUNNER_TEMP before the website steps. No later step needs it: the post step of our setup-node takes 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 v13 branch below a copy of our .yarnrc.yml: yarn config get cacheFolder fails with the same error, and succeeds once the file is moved away.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F

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>
@cknitt cknitt added the changelog:skip No release notes needed label Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Changelog

No changelog entry.

Semantic Diff

1 commit · Full page

Hide the compiler's Yarn config from the website in Publish

f7eb58d · 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 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.

@cknitt
cknitt requested a review from fhammerschmidt November 5, 2026 17:07
@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@9236

@rescript/belt

npm i https://pkg.pr.new/@rescript/belt@9236

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@9236

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@9236

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@9236

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@9236

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@9236

commit: f7eb58d

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

@cknitt
cknitt merged commit 7c5e704 into master Nov 5, 2026
26 of 27 checks passed
@cknitt
cknitt deleted the publish-website-yarnrc branch November 5, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skip No release notes needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants