diff --git a/scripts/v1-release.test.mjs b/scripts/v1-release.test.mjs index 0ec7f8a0..fa9d3786 100644 --- a/scripts/v1-release.test.mjs +++ b/scripts/v1-release.test.mjs @@ -196,17 +196,3 @@ test("the maintenance publisher never selects latest", () => { ); assert.match(seedJob, /run: node scripts\/v1-release\.mjs tag-legacy/); }); - -test("legacy tag migration pins an OIDC-capable npm before changing tags", () => { - const workflow = readFileSync( - new URL("../.github/workflows/publish.yml", import.meta.url), - "utf8", - ); - const seedJob = workflow.split(" legacy-tags:\n")[1]; - const install = seedJob.indexOf("npm install --global npm@12.2.0"); - const verify = seedJob.indexOf('test "$(npm --version)" = "12.2.0"'); - const tag = seedJob.indexOf("node scripts/v1-release.mjs tag-legacy"); - assert.ok(install >= 0, "Install npm with OIDC dist-tag support explicitly"); - assert.ok(verify > install, "Verify the installed npm version"); - assert.ok(tag > verify, "Require the pinned npm before changing tags"); -});