Skip to content

ci(release): run the publish job on a GitHub-hosted runner - #107

Merged
dylnslck merged 1 commit into
mainfrom
polylane/autofix/qkskfb3d7ebr
Dec 4, 2026
Merged

dylnslck merged 1 commit into
mainfrom
polylane/autofix/qkskfb3d7ebr

Conversation

@polylane

@polylane polylane Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The shuttle release job runs on a self-hosted runner, and npm rejects a provenance statement from one. The next version publish would fail the same way the looms release did. The release job now runs on a GitHub-hosted runner, so npm accepts the publish. The looms Release run failed with npm E422 "Unsupported GitHub Actions runner environment: self-hosted" during changeset publish. Shuttle has the same trusted-publishing setup (id-token write, no NPM_TOKEN) and the same Blacksmith runner. Its Release run #77 passed only because it had no changeset to publish.

Production impact at d28dea3: Shuttle release workflow runs on a runner npm accepts

Fix walkthrough

Watch the fix walkthrough

Watch the fix explained (1:12). Recorded for commit d28dea3296f9bbea33989afcaaba5a9d438df01c.

Full analysis

Production impact

The change edits only .github/workflows/release.yml and alters no deployed runtime. The repository graph node is ByteSliceHQ/shuttle; the workflow file deploys nothing, so no production resource changes behavior. Commit db51137 introduced the self-hosted runner that npm rejects; this restores the publish path it replaced.

Checked and not affected (1)
  • repo_1f9fb2ff4001k227h74zvilt

Observability

  • The Release workflow run conclusion and the npm publish line in the job log show whether publishing works.

Polylane assessed this pull request at d28dea3.

Causal chain
  • Signal (alert): looms Release run #158 failed: npm E422 unsupported self-hosted runner during trusted publish
  • Surfacing site: ByteSliceHQ/shuttle at .github/workflows/release.yml#release
  • Mechanism: Commit db51137 moved the Release job to a self-hosted Blacksmith runner. That job publishes with npm trusted publishing (id-token write, no NPM_TOKEN), and npm verifies the provenance bundle only for github-hosted runners, so the next publish PUT returns E422 Unsupported GitHub Actions runner environment: self-hosted.
  • Producer: ByteSliceHQ/shuttle, at ByteSliceHQ/shuttle:.github/workflows/release.yml#release
  • Last observed: 2026-12-03T23:31:43Z
  • Why the fix is still needed while the signal is quiet: The defect is latent: no shuttle publish has run since the Blacksmith switch, so the workflow has not yet produced the E422.
  • Blast radius: unknown other resource(s), unknown other tenant(s); data at risk: The next shuttle version stays unpublished until the job runs on a hosted runner.
  • Producer evidence:
    • Commit db51137 (ci: run workflows on Blacksmith runners ci: run workflows on Blacksmith runners #105) set runs-on: blacksmith-2vcpu-ubuntu-2404 in .github/workflows/release.yml.
    • The release workflow sets id-token: write and runs changeset publish with no NPM_TOKEN on that self-hosted runner.
    • The same setup failed in looms run 47392452387 with npm E422 Unsupported GitHub Actions runner environment: "self-hosted".
    • Release run feat(engine): run on looms 0.30.0 #77 passed on 2026-12-03 only because no changeset was waiting to publish.
1 file changed (+1/-1)
  • .github/workflows/release.yml: modified, +1/-1

View autofix


Generated by Polylane. You can ask follow-ups by mentioning @polylane in a comment. If you close this pull request without merging, add a comment that says why. Polylane reads it to make its next fixes better.

Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
@polylane polylane Bot added polylane severity:medium Polylane autofix severity: medium labels Dec 4, 2026
@dylnslck
dylnslck merged commit 0fc89b3 into main Dec 4, 2026
5 checks passed
@dylnslck
dylnslck deleted the polylane/autofix/qkskfb3d7ebr branch December 4, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

polylane severity:medium Polylane autofix severity: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant