test(release): accept guarded npm publishing

This commit is contained in:
morluto committed 2026-10-04 03:52:44 +08:00
1 parent 726b730b84
commit b7bc855492
1 file changed
+4 -2
@@ -106,11 +106,13 @@ describe("package installation workflows", () => {
({ run }: { readonly run?: unknown }) => run === "npm run verify:package",
);
const npmPublishIndex = publishSteps.findIndex(
({ run }: { readonly run?: unknown }) =>
run === "npm publish --access public",
({ name }: { readonly name?: unknown }) => name === "Publish",
);
expect(verifyPackageIndex).toBeGreaterThanOrEqual(0);
expect(npmPublishIndex).toBeGreaterThan(verifyPackageIndex);
expect(publishSteps[npmPublishIndex]?.run).toContain(
"npm publish --access public",
);
const publishedCanary = publishSteps.find(
({ name }: { readonly name?: unknown }) =>