Skip to content

fix(ci): authenticate @void-sdk fetches in e2e + release workflows#104

Merged
graydawnc merged 1 commit intomainfrom
fix/ci-void-sdk-auth
Apr 22, 2026
Merged

fix(ci): authenticate @void-sdk fetches in e2e + release workflows#104
graydawnc merged 1 commit intomainfrom
fix/ci-void-sdk-auth

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

@graydawnc graydawnc commented Apr 22, 2026

Summary

Fixes the post-merge CI failure on main introduced by PR #103 (landing → void migration). That PR added @void-sdk/* packages hosted on GitHub Packages and updated deploy-landing.yml to authenticate — but forgot about e2e.yml and release.yml, both of which run pnpm install --frozen-lockfile and now hit ERR_PNPM_FETCH_401.

Example failure: https://github.com/spool-lab/spool/actions/runs/24768493984

Change

Central the auth configuration in the repo-root .npmrc, then inject the NODE_AUTH_TOKEN env var on every install step that needs it.

  • .npmrc grows one line: //npm.pkg.github.com/:_authToken=\${NODE_AUTH_TOKEN} — pnpm expands the env ref at install time, so the token still only lives in repo secrets.
  • e2e.yml (unit + e2e jobs): adds NODE_AUTH_TOKEN env on the two install steps.
  • release.yml (build-mac + build-linux): same two-line addition on each.
  • deploy-landing.yml left unchanged — its existing setup-node registry-url path keeps working because the secret is still named NODE_AUTH_TOKEN.

No code paths touched — purely CI.

Test plan

  • Diff is three files, 9 insertions, no deletions
  • CI on this PR turns green (verifies the fix actually installs @void-sdk/* under the new auth path)
  • Once merged, the main push run should be green end-to-end

🤖 Generated with Claude Code

PR #103 introduced a dependency on @void-sdk/* (published to GitHub
Packages), but only deploy-landing.yml was updated to authenticate.
The e2e and release workflows still ran `pnpm install --frozen-lockfile`
without credentials and failed with ERR_PNPM_FETCH_401 on main after
subsequent merges.

Fix by teaching `.npmrc` to pull the token from `NODE_AUTH_TOKEN` and
injecting that env var on every install step that needs it. No other
changes — deploy-landing.yml keeps working as-is because setup-node
already sets NODE_AUTH_TOKEN via its registry-url path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc merged commit 974fe34 into main Apr 22, 2026
4 checks passed
@graydawnc graydawnc deleted the fix/ci-void-sdk-auth branch April 22, 2026 08:45
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