Skip to content

Add yarn cache to setup-node step in CI workflow#887

Merged
ohltyler merged 1 commit into
opensearch-project:mainfrom
dbwiddis:add-yarn-cache-to-setup-node
May 1, 2026
Merged

Add yarn cache to setup-node step in CI workflow#887
ohltyler merged 1 commit into
opensearch-project:mainfrom
dbwiddis:add-yarn-cache-to-setup-node

Conversation

@dbwiddis
Copy link
Copy Markdown
Member

Description

Adds cache: 'yarn' to the actions/setup-node step in the macOS build job, enabling the built-in dependency caching provided by the setup-node action. This caches yarn dependencies between workflow runs to reduce build times for PRs.

The cache-dependency-path is set to './OpenSearch-Dashboards/**/yarn.lock' to match the project's checkout structure.

Note: The Linux job runs in a container using nvm directly (no setup-node action), so it is not affected by this change.

Issues Resolved

N/A

Check List

  • New functionality includes testing
    • N/A (infrastructure-only change, CI runs will validate)
  • New functionality has been documented
    • N/A
  • Commits are signed per the DCO using --signoff

Adds cache: yarn to the actions/setup-node step in the macOS build job,
caching yarn dependencies between workflow runs to reduce build times.

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Dan Widdis <widdisd@amazon.com>
@dbwiddis dbwiddis force-pushed the add-yarn-cache-to-setup-node branch from 64dac4c to 019261d Compare April 28, 2026 05:45
@ohltyler ohltyler merged commit 53ae807 into opensearch-project:main May 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants