diff --git a/.github/workflows/package-version-guard.yml b/.github/workflows/package-version-guard.yml index 5cf9ca7c97..c9c98cb36a 100644 --- a/.github/workflows/package-version-guard.yml +++ b/.github/workflows/package-version-guard.yml @@ -128,6 +128,9 @@ jobs: git merge-base --is-ancestor "$sha" origin/main \ || { echo "::error::$tag points at $sha, which is not on main"; exit 1; } git checkout -q --detach "$sha" + # Same install as npm-publish: the cli bundles packages/seats, and its + # prepack refuses to pack without node_modules/@commonlyai/seats. + ( cd "$PKG" && npm ci --ignore-scripts ) bash scripts/npm-artifact-diff.sh "$PKG" "$reg_v" \ || { echo "::error::$name $reg_v does not match the commit its tag names ($tag → $sha)"; exit 1; } echo "✓ $name $reg_v = $tag = $sha"