Skip to content
vxvx
GitHubBlueskydev.toRSS

Cache scope from the branch

On Actions, main writes trusted cache entries and a pull request writes only its own.

Cache scope taken from the branch on Actions.

A shared cache needs a rule for who may write. On GitHub Actions, @vzn/vx-ci sets it from the ref: the default branch is trusted, a pull request gets a scope of its own.

No config needed; set cacheScope yourself to override it.

// config

// vx.workspace.ts
import { defineWorkspace } from '@vzn/vx/config'
import { github } from '@vzn/vx-ci'

export default defineWorkspace({
  plugins: [github({ cacheScope: true })],
})
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.