Repository navigation
[Phase 5] 0.1.0 OIDC release automation - #5
Conversation
Add multi-package release packing/publish scripts and the signed-tag GitHub workflow, bump both packages and fixture pins to 0.1.0, and document the activation steps after the 0.0.0 bootstrap and trusted-publisher setup.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
@codex review |
There was a problem hiding this comment.
🟡 Not ready to approve
The release script can throw a TypeError on missing lockfile entries (instead of failing with a clear validation error), and the new .d.mts declarations aren’t currently guaranteed to be type-checked by npm run check.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
Prepares the first advertised @pegma/scheduler / @pegma/scheduler-cloudflare release (0.1.0) by adding scripted multi-package release validation/packing/publishing and a GitHub OIDC-based publish workflow, plus documenting the operational handoff.
Changes:
- Bumps both public packages (and fixture/lockfile pins) from
0.0.0to0.1.0, including the internal dependency pin. - Adds
scripts/release-packages.mjs(+ typings + tests) to validate repo/package metadata, pack exact tarballs, and publish via OIDC in CI. - Introduces
.github/workflows/publish.ymland updates docs (RELEASING.md, release notes, project plan) to describe the signed-tag → GitHub Release → OIDC publish lane.
File summaries
| File | Description |
|---|---|
| vitest.config.ts | Expands Vitest discovery to include root tests/ suite. |
| tsconfig.test.json | Extends test typecheck scope to include new test folder and release script-related files. |
| tests/release-packages.test.ts | Adds coverage for release script argument parsing, package inventory ordering, and version/pin expectations. |
| scripts/release-packages.mjs | Implements repo/package validation, tarball packing + verification, and OIDC-only publish flow. |
| scripts/release-packages.d.mts | Provides TypeScript declarations for the release script’s exported API. |
| README.md | Updates top-level messaging to reflect bootstrap 0.0.0 and first advertised 0.1.0 release via workflow. |
| packages/scheduler/package.json | Bumps @pegma/scheduler to 0.1.0. |
| packages/scheduler-cloudflare/package.json | Bumps adapter to 0.1.0 and pins @pegma/scheduler to 0.1.0. |
| package.json | Adds `release:check |
| package-lock.json | Synchronizes lockfile versions and fixture dependency pins with 0.1.0. |
| fixtures/support-desk/package.json | Pins fixture dependency to @pegma/scheduler@0.1.0. |
| fixtures/README.md | Updates fixture pin documentation and notes about OIDC publish completion. |
| fixtures/ops-hub/package.json | Pins fixture dependencies to 0.1.0 for both packages. |
| fixtures/azure-functions/package.json | Pins fixture dependency to @pegma/scheduler@0.1.0. |
| docs/RELEASING.md | Replaces placeholder guidance with concrete signed-tag + GitHub Release + OIDC publish process. |
| docs/RELEASE_NOTES.md | Adds 0.1.0 release notes for first advertised release. |
| docs/PROJECT_PLAN.md | Updates Phase 5 status and captures activation/verification steps for publish workflow. |
| .github/workflows/publish.yml | Adds the release-triggered workflow that validates, packs, uploads, downloads, and publishes via OIDC. |
Review details
- Files reviewed: 17/18 changed files
- Comments generated: 2
- Review effort level: Lite
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
Make lockfile absence a clear validation failure, and include scripts/**/*.d.mts in the test TypeScript project.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 50f166cec4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ); | ||
| } | ||
| for (const section of DEPENDENCY_SECTIONS) { | ||
| for (const [name, version] of Object.entries(manifest[section] ?? {})) { |
There was a problem hiding this comment.
Require the adapter's core dependency
If a later release accidentally removes @pegma/scheduler from the Cloudflare adapter, this loop has no entry to validate and the release still passes: the workspace build can resolve the project reference, fixtures declare both packages, and smokeTestTarballs explicitly installs both tarballs. Consumers installing only @pegma/scheduler-cloudflare would then receive ERR_MODULE_NOT_FOUND, so validate the required dependency graph rather than only checking internal dependencies that happen to be declared.
Useful? React with 👍 / 👎.
Summary
Prepares the first advertised release of
@pegma/schedulerand@pegma/scheduler-cloudflareafter the manual0.0.0bootstrap and trustedpublisher configuration.
0.1.0@pegma/scheduler@0.1.0scripts/release-packages.mjs(support-desk multi-package pattern).github/workflows/publish.yml(signed tag → pack → OIDC publish)Activation (after this PR merges)
Human/signed-tag steps:
RELEASE_ALLOWED_SIGNERSrepo variable andnpm-publishenvironment existmain: signed annotatedv0.1.0taggh release create v0.1.0 --verify-tag ...to start the publish workflownpm dist-tag lsshowslatest=0.1.0for both packagesTest evidence
Residual risks