Skip to content

Add DISABLE_GITHUB_CACHE env var #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/constants.mts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type Internals = Remap<
type ENV = Remap<
RegistryEnv &
Readonly<{
DISABLE_GITHUB_CACHE: boolean
GITHUB_ACTIONS: boolean
GITHUB_REF_NAME: string
GITHUB_REF_TYPE: string
Expand Down Expand Up @@ -215,6 +216,9 @@ const LAZY_ENV = () => {
return Object.freeze({
// Lazily access registryConstants.ENV.
...registryConstants.ENV,
// Flag to disable using GitHub's workflow actions/cache.
// https://github.com/actions/cache
DISABLE_GITHUB_CACHE: envAsBoolean(env['DISABLE_GITHUB_CACHE']),
// Always set to true when GitHub Actions is running the workflow. This variable
// can be used to differentiate when tests are being run locally or by GitHub Actions.
// https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
Expand Down
Loading