Skip to content

ci: disable package manager cache in release workflows#357

Open
artus9033 wants to merge 1 commit into
mainfrom
ci/disable-package-manager-cache
Open

ci: disable package manager cache in release workflows#357
artus9033 wants to merge 1 commit into
mainfrom
ci/disable-package-manager-cache

Conversation

@artus9033
Copy link
Copy Markdown
Collaborator

Summary

This PR disables package manager cache in release workflows.

Test plan

CI green.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the release-oriented GitHub Actions workflows to avoid using dependency caching, aiming for clean installs/builds during release and docs deployment runs.

Changes:

  • Replaced the repo’s composite ./.github/actions/setup step with explicit actions/setup-node + yarn install in release.yml and deploy-docs.yml.
  • Removed the restore-turbo-cache input from the composite setup action and made the Turbo cache restore step unconditional.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/release.yml Switches to explicit Node setup + install to disable dependency caching in release runs.
.github/workflows/deploy-docs.yml Switches to explicit Node setup + install to disable dependency caching in docs deployment builds.
.github/actions/setup/action.yml Removes the Turbo-cache toggle input, making Turbo cache restore always run for workflows using this composite action.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

with:
restore-turbo-cache: 'false' # in release workflow, build from scratch
node-version: 'lts/*'
package-manager-cache: false # disable caching
uses: actions/setup-node@65d868f8d4d85d7d4abb7de0875cde3fcc8798f5 # v6
with:
node-version: 'lts/*'
package-manager-cache: false # disable caching
Comment on lines 17 to 23
- name: Build packages
run: yarn build
shell: bash

- name: Restore Turbo cache
if: inputs.restore-turbo-cache == 'true'
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
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.

2 participants