Skip to content

Commit ffaa252

Browse files
authored
ci: stage the npm launcher without provenance (#11)
The v1.1.7 release run staged nothing: npm rejects provenance for private source repositories. ``` npm error 422 Unprocessable Entity - POST https://registry.npmjs.org/-/stage/package/@runroom%2fcode-quality - Error verifying sigstore provenance bundle: Unsupported GitHub Actions source repository visibility: "private". Only public source repositories are supported when publishing with provenance. ``` Drops `--provenance` from `npm stage publish`; re-add it if the repository becomes public. After merge, `v1.1.7` is moved to the merge commit so the release re-runs and stages the launcher.
2 parents dc9416a + d794186 commit ffaa252

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ jobs:
8888
version="$(node -p "require('./package.json').version")"
8989
tag=latest
9090
case "$version" in *-*) tag=next;; esac
91-
npm stage publish --provenance --access public --tag "$tag"
91+
npm stage publish --access public --tag "$tag"
9292
working-directory: launcher

tests/workflows/release.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ describe("release publishers", () => {
9393
const steps = workflow().jobs.npm.steps;
9494
const download = steps.find((step) => step.uses?.startsWith("actions/download-artifact@"));
9595
const npmInstall = steps.find((step) => step.run === "npm install -g npm@11.19.0");
96-
const publish = steps.find((step) => step.run?.includes("npm stage publish --provenance --access public --tag"));
96+
const publish = steps.find((step) => step.run?.includes("npm stage publish --access public --tag"));
9797

9898
expect(download?.with).toMatchObject({ name: "launcher-dist", path: "launcher/dist" });
9999
expect(steps.some((step) => step.run?.startsWith("pnpm"))).toBe(false);
100100
expect(publish?.["working-directory"]).toBe("launcher");
101101
expect(npmInstall?.run).toBe("npm install -g npm@11.19.0");
102102
const npmInstallIndex = steps.findIndex((step) => step.run === "npm install -g npm@11.19.0");
103-
const publishIndex = steps.findIndex((step) => step.run?.includes("npm stage publish --provenance --access public --tag"));
103+
const publishIndex = steps.findIndex((step) => step.run?.includes("npm stage publish --access public --tag"));
104104
expect(npmInstallIndex).toBeLessThan(publishIndex);
105105
});
106106

0 commit comments

Comments
 (0)