mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-24 06:41:16 +00:00
fix(ci): make npm bootstrap retries idempotent
This commit is contained in:
@@ -329,8 +329,19 @@ describe("plugin npm extended-stable workflow", () => {
|
||||
});
|
||||
expect(publish.env?.NODE_AUTH_TOKEN).toBeUndefined();
|
||||
expect(publish.env?.NPM_TOKEN).toBeUndefined();
|
||||
const bootstrapCheck = step(
|
||||
parsed.jobs?.publish_plugins_npm,
|
||||
"Check bootstrap npm package version",
|
||||
);
|
||||
expect(bootstrapCheck.if).toContain("npm-token-bootstrap");
|
||||
expect(bootstrapCheck.run).toContain("fetchNpmRegistryPackumentWithRetry");
|
||||
expect(bootstrapCheck.run).toContain("publishedDist.integrity !== expectedIntegrity");
|
||||
expect(bootstrapCheck.run).toContain("already_published=true");
|
||||
const bootstrap = step(parsed.jobs?.publish_plugins_npm, "Publish approved bootstrap tarball");
|
||||
expect(bootstrap.if).toContain("npm-token-bootstrap");
|
||||
expect(bootstrap.if).toContain(
|
||||
"steps.bootstrap_npm_package_version.outputs.already_published != 'true'",
|
||||
);
|
||||
expect(bootstrap.env?.NPM_TOKEN).toBe("${{ secrets.NPM_TOKEN }}");
|
||||
expect(bootstrap.env?.PACKAGE_NAME).toContain("publication_evidence.outputs.package_name");
|
||||
expect(bootstrap.run).not.toContain("@openclaw/meta-provider");
|
||||
|
||||
Reference in New Issue
Block a user