Skip to content

ci: add staged npm publishing - #2

Merged
b2m9 merged 3 commits into
mainfrom
ci/add-npm-publishing
Jul 31, 2026
Merged

ci: add staged npm publishing#2
b2m9 merged 3 commits into
mainfrom
ci/add-npm-publishing

Conversation

@b2m9

@b2m9 b2m9 commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • stage npm releases through GitHub Actions trusted publishing
  • validate release tags and the package before staging
  • document the release flow and assign ownership of workflow changes

Validation

  • full package check: 90 tests, typecheck, lint, format, build, publint, and attw
  • npm package dry-run
  • workflow YAML parse

Summary by cubic

Adds a GitHub Actions workflow to stage npm releases with trusted publishing. Validates the release tag and package, and documents the release steps.

  • New Features

    • Publish workflow stages the package on npm (not live) and requires maintainer approval with 2FA.
    • Ensures the GitHub Release tag equals v<package.json version>; blocks prerelease versions without an explicit npm dist-tag.
    • Runs full checks and npm pack --dry-run before staging.
    • Uses OIDC (id-token), Node 24, and installs npm@11.15.0 for staged publishing.
    • Protects CI workflows via CODEOWNERS (/.github/workflows/** owned by @b2m9).
  • Migration

    • Follow the checklist in RELEASING.md (create a matching tag and GitHub Release).
    • After staging completes, approve the package on npm with 2FA.

Written for commit 39c9581. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread RELEASING.md
@b2m9
b2m9 merged commit 6567fd4 into main Jul 31, 2026
4 checks passed
@b2m9
b2m9 deleted the ci/add-npm-publishing branch July 31, 2026 08:14
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