Skip to content

Commit 82f6862

Browse files
committed
test: remove npm version workflow regression
1 parent 8a6862e commit 82f6862

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

‎scripts/v1-release.test.mjs‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,3 @@ test("the maintenance publisher never selects latest", () => {
196196
);
197197
assert.match(seedJob, /run: node scripts\/v1-release\.mjs tag-legacy/);
198198
});
199-
200-
test("legacy tag migration pins an OIDC-capable npm before changing tags", () => {
201-
const workflow = readFileSync(
202-
new URL("../.github/workflows/publish.yml", import.meta.url),
203-
"utf8",
204-
);
205-
const seedJob = workflow.split(" legacy-tags:\n")[1];
206-
const install = seedJob.indexOf("npm install --global npm@12.2.0");
207-
const verify = seedJob.indexOf('test "$(npm --version)" = "12.2.0"');
208-
const tag = seedJob.indexOf("node scripts/v1-release.mjs tag-legacy");
209-
assert.ok(install >= 0, "Install npm with OIDC dist-tag support explicitly");
210-
assert.ok(verify > install, "Verify the installed npm version");
211-
assert.ok(tag > verify, "Require the pinned npm before changing tags");
212-
});

0 commit comments

Comments
 (0)