ci(release): use release approval for npm telegram e2e

This commit is contained in:
Ayaan Zaidi
2026-04-24 12:14:19 +05:30
parent 41c5ffc5d5
commit 8ba22ca0dc
2 changed files with 18 additions and 25 deletions

View File

@@ -41,14 +41,15 @@ describe("npm Telegram live Docker E2E", () => {
expect(script).toContain('credential_role="ci"');
});
it("limits the manual npm beta workflow to release managers", () => {
it("requires release manager environment approval for the manual npm beta workflow", () => {
const workflow = readFileSync(WORKFLOW_PATH, "utf8");
expect(workflow).toContain('const teamSlug = "openclaw-release-managers";');
expect(workflow).toContain("github.rest.teams.listMembersInOrg");
expect(workflow).toContain("memberLogins.has(context.actor)");
expect(workflow).toContain("approve_release_manager:");
expect(workflow).toContain("environment: npm-release");
expect(workflow).toContain("needs: approve_release_manager");
expect(workflow).not.toContain('new Set(["admin", "write"])');
expect(workflow).not.toContain("data.role_name");
expect(workflow).not.toContain("github.rest.teams.listMembersInOrg");
expect(workflow).not.toContain("getMembershipForUserInOrg");
});