Skip to content

Commit bf7f2dc

Browse files
committed
fix(release): require npm platform bootstrap before tagging
1 parent 474e37a commit bf7f2dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ for dir in $platform_dirs; do
6262
found=$(node -p "require('./$manifest').version")
6363
[ "$found" = "$version" ] ||
6464
die "platform package $dir is $found, expected $version"
65+
npm view "$expected_name" name --json --registry=https://registry.npmjs.org/ >/dev/null 2>&1 ||
66+
die "$expected_name is not bootstrapped on npm; publish an initial version and configure trusted publishing before tagging"
6567
done
6668

6769
VERSION="$version" node -e '

0 commit comments

Comments
 (0)