Skip to content

Publish to npm via OIDC in the release workflow#34

Merged
theinfosecguy merged 1 commit into
mainfrom
ci/release-npm-oidc-publish
Jun 14, 2026
Merged

Publish to npm via OIDC in the release workflow#34
theinfosecguy merged 1 commit into
mainfrom
ci/release-npm-oidc-publish

Conversation

@theinfosecguy

Copy link
Copy Markdown
Owner

Problem & Solution Overview

The release workflow ran the package smoke test but had no publish step. It now adds a publish job that runs after the smoke test and, on a version tag (refs/tags/v*), publishes to npm using OIDC trusted publishing — no long-lived token, provenance attached automatically. It upgrades npm to a trusted-publishing-capable version (>= 11.5.1) and sets id-token: write.

Testing Done

release.yml validated as YAML. Publish is gated to version tags and depends on the smoke job, so pushing v1.3.0 runs smoke → publish.

@theinfosecguy theinfosecguy merged commit d6750de into main Jun 14, 2026
5 checks passed
@theinfosecguy theinfosecguy deleted the ci/release-npm-oidc-publish branch June 14, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant