Skip to content

refactor(ci): drop registry-url, rely on project .npmrc for auth#11

Merged
fengmk2 merged 4 commits intomainfrom
refactor/setup-vp-npmrc-auth
Apr 22, 2026
Merged

refactor(ci): drop registry-url, rely on project .npmrc for auth#11
fengmk2 merged 4 commits intomainfrom
refactor/setup-vp-npmrc-auth

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Apr 22, 2026

Summary

Refactor CI/deploy workflows to use the new setup-vp behavior from voidzero-dev/setup-vp#54.

  • Drop registry-url: https://npm.pkg.github.com from all setup-vp steps in .github/workflows/ci.yml and .github/workflows/deploy.yml.
  • Rely on the repo-level .npmrc (@void-sdk:registry=https://npm.pkg.github.com) plus NODE_AUTH_TOKEN env: the action auto-generates a matching _authToken entry at $RUNNER_TEMP/.npmrc for each registry declared in the project .npmrc that doesn't already have one.
  • The checked-in .npmrc stays minimal — no auth line needed.

Pinning

Pinned to commit af4ffd95e8c3d93e048fe8f03afeb2d4e3eba927 (head of PR #54's fix/respect-project-npmrc branch) via a commented SHA. Bump back to @v1 once the PR merges and is released.

Test plan

  • test job on this PR runs vp install successfully (private @void-sdk/* packages resolve from GitHub Packages)
  • staging-deploy job on this PR completes vpx void deploy

Uses the new setup-vp behavior from voidzero-dev/setup-vp#54: when
NODE_AUTH_TOKEN is set, the action auto-generates a matching _authToken
entry for each registry declared in the repo .npmrc. The repo .npmrc
stays minimal (scope -> registry only) and no registry-url is needed
in the workflow.

Pinned to commit af4ffd9 on the PR branch until the change is released
under @v1.
@fengmk2 fengmk2 self-assigned this Apr 22, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2026

✅ Staging deployment successful!

Preview: https://vp-setup-staging.void.app/
Commit: 2e18fc2

@fengmk2 fengmk2 merged commit 6b6c4c0 into main Apr 22, 2026
4 checks passed
@fengmk2 fengmk2 deleted the refactor/setup-vp-npmrc-auth branch April 22, 2026 13:32
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.

1 participant