Repository navigation
Conversation
kaysiz
approved these changes
Jun 3, 2026
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.
Purpose
This PR updates the project's build and dependency management tooling to leverage Yarn 4 and Corepack. This includes updating the GitHub Actions workflow to use Yarn 4 for dependency installation and building, and implementing a more robust
.gitignoreto handle Yarn's cache and build artifacts.Approach
The primary approach involves migrating from Yarn Classic to Yarn 4. This is achieved by:
packageManagerfield inpackage.json.checkoutaction is updated to v6.setup-nodeaction is updated to v6 and configured to cache dependencies based onyarn.lock.yarn install --immutable, which is a Yarn 4 feature for more robust and predictable installations.yarn build..gitignore: The.gitignorefile is updated to correctly exclude Yarn's cache, build artifacts, and other Yarn-specific files, ensuring these are not committed to the repository..tool-versions: A.tool-versionsfile is added to explicitly pin the Node.js version to 22, aligning with the version used in the build workflow..yarnrc.yml: A.yarnrc.ymlfile is introduced to configure Yarn, disabling scripts by default and setting thenodeLinkertonode-modules. ThenpmMinimalAgeGateis also set, which is a standard Yarn 4 configuration.Key Modifications
.github/workflows/build_dist_on_merge.yml: Updated to use Yarn 4, Corepack, and immutable installs..gitignore: Modified to include new Yarn-related files and directories..tool-versions: Added to specify the Node.js version..yarnrc.yml: Added to configure Yarn settings.README.md: Updated to reflect changes in dependencies and installation steps.yarn.lock: Updated to reflect the new dependency resolution for Yarn 4.Important Technical Details
yarn install --immutablecommand ensures that theyarn.lockfile is strictly adhered to, preventing unexpected dependency changes.cache: yarnandcache-dependency-path: yarn.lockinsetup-nodeensure that Yarn's dependencies are cached effectively in the GitHub Actions workflow.Types of changes
Reviewer, please remember our guidelines: