Skip to content

Commit 4ed67ad

Browse files
committed
ci: Configure custom npm registry URL and prevent its overwriting in the release workflow.
1 parent db0016b commit 4ed67ad

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ jobs:
305305
- uses: actions/setup-node@v6
306306
with:
307307
node-version: '20.x'
308-
registry-url: 'https://registry.npmjs.org'
308+
registry-url: 'https://wombat-dressing-room.appspot.com'
309309
- run: |
310310
for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith("-npm-package.tar.gz")] | any)'); do
311311
pkg=$(echo "$release" | jq '.artifacts[] | select(endswith("-npm-package.tar.gz"))' --raw-output)

dist-workspace.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ package = "cli"
3333
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
3434
# Which actions to run on pull requests
3535
pr-run-mode = "plan"
36+
# Don't overwrite release.yml on `cargo dist init` (preserves custom npm registry config)
37+
allow-dirty = ["ci"]
3638
# The archive format to use for windows builds (defaults .zip)
3739
windows-archive = ".tar.gz"
3840
# The archive format to use for non-windows builds (defaults .tar.xz)

0 commit comments

Comments
 (0)