ci: disable package manager cache in release workflows#357
Open
artus9033 wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
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/setupstep with explicitactions/setup-node+yarn installinrelease.ymlanddeploy-docs.yml. - Removed the
restore-turbo-cacheinput 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: |
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.
Summary
This PR disables package manager cache in release workflows.
Test plan
CI green.