Summary
setup-vp should make vp install behave the same way as in-repo installs that already rely on .npmrc for registry configuration, including custom registries such as GitHub Packages.
Today, vp install in GitHub Actions appears to require explicitly passing registry-url to voidzero-dev/setup-vp@v1 even when the repository already has the correct registry settings in .npmrc and auth is provided via NODE_AUTH_TOKEN.
Current behavior
A workflow like this works:
- uses: voidzero-dev/setup-vp@v1
with:
cache: true
registry-url: https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
But without registry-url, install fails with missing auth / registry-related errors, even though the project .npmrc already contains the expected registry config.
A workaround is to skip the install step in setup-vp and do the install manually later:
- uses: voidzero-dev/setup-vp@v1
with:
node-version: ${{ matrix.node-version }}
cache: true
run-install: false
- uses: pnpm/action-setup@v6
- run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
Expected behavior
vp install should respect the repository's .npmrc the same way normal in-repo installs do:
- custom registry config should be picked up automatically
- auth from standard npm envs such as
NODE_AUTH_TOKEN should work without extra action-specific config
- users should not need to duplicate registry configuration in the workflow if it is already declared in the repo
Why this matters
This makes CI behavior differ from local behavior and from plain pnpm install, which is confusing and easy to misconfigure.
Related context
Reported from real GitHub Actions usage while installing private GitHub packages for Vite+ deploy workflows.
Summary
setup-vpshould makevp installbehave the same way as in-repo installs that already rely on.npmrcfor registry configuration, including custom registries such as GitHub Packages.Today,
vp installin GitHub Actions appears to require explicitly passingregistry-urltovoidzero-dev/setup-vp@v1even when the repository already has the correct registry settings in.npmrcand auth is provided viaNODE_AUTH_TOKEN.Current behavior
A workflow like this works:
But without
registry-url, install fails with missing auth / registry-related errors, even though the project.npmrcalready contains the expected registry config.A workaround is to skip the install step in
setup-vpand do the install manually later:Expected behavior
vp installshould respect the repository's.npmrcthe same way normal in-repo installs do:NODE_AUTH_TOKENshould work without extra action-specific configWhy this matters
This makes CI behavior differ from local behavior and from plain
pnpm install, which is confusing and easy to misconfigure.Related context
Reported from real GitHub Actions usage while installing private GitHub packages for Vite+ deploy workflows.