Commit 6b6c4c0
authored
refactor(ci): drop registry-url, rely on project .npmrc for auth (#11)
## Summary
Refactor CI/deploy workflows to use the new `setup-vp` behavior from
[voidzero-dev/setup-vp#54](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`1 parent 2f54da2 commit 6b6c4c0
2 files changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
0 commit comments