Skip to content

improve CI workflow timing#2367

Open
Marketen wants to merge 1 commit intodevelopfrom
marc/improve-ci
Open

improve CI workflow timing#2367
Marketen wants to merge 1 commit intodevelopfrom
marc/improve-ci

Conversation

@Marketen
Copy link
Copy Markdown
Contributor

@Marketen Marketen commented Feb 9, 2026

Improves CI workflow and Docker build process to optimize dependency caching and reduce build times.

Main changes:

  • cache Yarn uses in main and npm workflows
  • Reestructure Dockerfile to enable layer caching

CI workflow improvements:

  • Enabled Yarn caching in GitHub Actions by adding the cache: "yarn" option to the setup-node steps in both .github/workflows/main.yml and .github/workflows/npm.yml, which helps speed up dependency installation in CI runs. [1] [2]

Docker build optimization:

  • Refactored the Dockerfile to extract only package.json files from each workspace into a separate build stage (manifests), allowing Docker to cache dependency installation layers more effectively.
  • Updated the build stage to first copy only dependency manifests, run yarn install --immutable, and then copy the full source code, ensuring that dependency installation is only re-run when manifest files change, not when source files change.

@Marketen Marketen requested a review from a team as a code owner February 9, 2026 12:06
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant