Repository navigation
ci(release): publish @onimurasame/numberone v1.0.0 to npm via OIDC Trusted Publishing pipeline - #15
Merged
Merged
Conversation
…ne with OIDC Trusted Publishing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares Number One (
v1.0.0) for public npm publication under@onimurasame/numberoneand upgrades.github/workflows/release.ymlinto a hardened, 3-job least-privilege CI/CD release pipeline.What Changed
@onimurasame/numberone):package.jsonandpackage-lock.jsonfrom unscopednumberone(already taken on npmjs.org at2.0.0by another author) to@onimurasame/numberonewhile preserving both global CLI binaries (n1andnumberone).publishConfig: { "access": "public" }inpackage.jsonwhile explicitly passing--provenancein CI so dry-runs, local bootstrap, and on-prem private registry publishes work cleanly outside GitHub OIDC..github/workflows/release.yml):v*.*.*tag pushes + manualworkflow_dispatch(defaulting todry_run: truewithnpm_tagselection).verify(contents: read, Node22.22.x, no cache): Validates semver, enforces tag/package version parity and live-publish branch/tag guardrails, runsnpm ci,typecheck,build,test,npm audit --audit-level=high,verify:workflows, tarball install smoke tests (bothn1andnumberonebinaries + ESMNumberOneAgentimport), andnpm publish --dry-run.publish-npm(contents: read,id-token: write,environment: npm, Node24): Assertsnpm >= 11.5.1for OIDC Trusted Publishing, builds withnpm ci --ignore-scripts, omitsregistry-urlfromsetup-nodeto prevent.npmrcplaceholder interference, publishes via OIDC Trusted Publishing by default with optionalNPM_TOKENbootstrap fallback (for the initialv1.0.0publish before the package exists on npmjs.org), enforces--provenance --access public, is idempotent on retries, and verifies live visibility onregistry.npmjs.org.github-release(contents: write): Runs after npm publish succeeds, packs the verified tarball +SHA256SUMS.txt, and idempotently creates/updates the GitHub Release with npm install instructions and auto-generated notes..github/workflows/ci.ymltarball smoke test to resolve package name dynamically frompackage.jsonand verify bothn1andnumberonebinaries.scripts/rollback.shdefault package to@onimurasame/numberoneand addednpmdeployment environment provisioning toscripts/configure-github.sh.CHANGELOG.mdforv1.0.0, added npm version badge toREADME.md, and updated package references acrossREADME.md,docs/,docs/site/, andexamples/.tests/workflow-and-pr-automation.test.tscovering manifest publishability,release.ymlhardening, andscripts/rollback.sh --dry-run.Verification & Bridge Crew Gate
npm run typecheckpasses with zero errors (src/+tests/).npm run buildsucceeds cleanly.npm testpasses 100% of unit, integration, adversarial, and E2E suites (10 files, 39 tests).npm audit --audit-level=highreports 0 vulnerabilities.EngineeringOfficer,SecurityOfficer,BridgeOfficer) maintains 100/100 KPI scores without regressions.permissions:(verify-workflows --verify-remote-tags: 21/21 verified).README.md,CHANGELOG.md,docs/INSTALLATION.md,docs/KIDS_AND_SCHOOL_PROJECTS.md,docs/TECHNICAL_GUIDE.md,docs/CODE_REFERENCE.md,docs/ONPREM.md,docs/site/, andexamples/) has been updated.