Skip to content

Commit 9ea375a

Browse files
committed
refactor(ci): drop registry-url, rely on project .npmrc for auth
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.
1 parent 2f54da2 commit 9ea375a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
17-
- uses: voidzero-dev/setup-vp@v1
17+
- uses: voidzero-dev/setup-vp@af4ffd95e8c3d93e048fe8f03afeb2d4e3eba927 # PR #54
1818
with:
1919
cache: true
20-
registry-url: https://npm.pkg.github.com
2120
env:
2221
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2322
- run: vp check
@@ -30,10 +29,9 @@ jobs:
3029
runs-on: ubuntu-latest
3130
steps:
3231
- uses: actions/checkout@v6
33-
- uses: voidzero-dev/setup-vp@v1
32+
- uses: voidzero-dev/setup-vp@af4ffd95e8c3d93e048fe8f03afeb2d4e3eba927 # PR #54
3433
with:
3534
cache: true
36-
registry-url: https://npm.pkg.github.com
3735
env:
3836
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
3937
- run: vpx void deploy

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v6
12-
- uses: voidzero-dev/setup-vp@v1
12+
- uses: voidzero-dev/setup-vp@af4ffd95e8c3d93e048fe8f03afeb2d4e3eba927 # PR #54
1313
with:
1414
cache: true
15-
registry-url: https://npm.pkg.github.com
1615
env:
1716
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
1817
- run: vpx void deploy

0 commit comments

Comments
 (0)