mirror of
https://github.com/wirenboard/agent-vm.git
synced 2026-07-09 16:00:54 +00:00
ci(release-npm): mirror require-path fix from rewrite-microsandbox
This commit is contained in:
parent
cb692b9e4a
commit
79d2458d64
1 changed files with 4 additions and 1 deletions
5
.github/workflows/release-npm.yml
vendored
5
.github/workflows/release-npm.yml
vendored
|
|
@ -286,7 +286,10 @@ jobs:
|
|||
# — avoiding a split-state where subpackages exist at v but
|
||||
# the main package never makes it.
|
||||
for d in npm-dist/agent-vm-*-*; do
|
||||
name=$(node -p "require('$d/package.json').name")
|
||||
# Node's `require` only resolves bare-relative paths
|
||||
# with a leading `./` — without it the loader treats the
|
||||
# argument as a node_modules / built-in spec and bails.
|
||||
name=$(node -p "require('./$d/package.json').name")
|
||||
existing=$(npm view "$name@$V" version 2>/dev/null || true)
|
||||
if [[ "$existing" == "$V" ]]; then
|
||||
echo "::notice::$name@$V already published; skipping"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue