Skip to content

[Phase 5] 0.1.0 OIDC release automation - #5

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
grok/scheduler-phase-5-release
Jul 31, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
grok/scheduler-phase-5-release

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Summary

Prepares the first advertised release of @pegma/scheduler and
@pegma/scheduler-cloudflare after the manual 0.0.0 bootstrap and trusted
publisher configuration.

  • Bump both packages (and fixture pins) to 0.1.0
  • Pin Cloudflare adapter dependency to @pegma/scheduler@0.1.0
  • Add scripts/release-packages.mjs (support-desk multi-package pattern)
  • Add .github/workflows/publish.yml (signed tag → pack → OIDC publish)
  • Document release notes and activation handoff

Activation (after this PR merges)

Human/signed-tag steps:

  1. Ensure RELEASE_ALLOWED_SIGNERS repo variable and npm-publish environment exist
  2. On main: signed annotated v0.1.0 tag
  3. gh release create v0.1.0 --verify-tag ... to start the publish workflow
  4. Confirm npm dist-tag ls shows latest=0.1.0 for both packages

Test evidence

npm run release:check  # pass
npm run format:check   # pass
npm run check          # pass
npm test               # 49 node + 4 D1 pass

Residual risks

  • Actual npm publish waits on the signed tag + GitHub release event
  • pegma.dev recipe is a separate host-repo follow-up after registry visibility

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.
Copilot AI review requested due to automatic review settings July 31, 2026 23:14
@cursor

cursor Bot commented Jul 31, 2026

Copy link
Copy Markdown

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.

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

Copilot AI 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.

🟡 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.0 to 0.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.yml and 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.

Comment thread tsconfig.test.json Resolved
Comment thread scripts/release-packages.mjs Resolved
Make lockfile absence a clear validation failure, and include
scripts/**/*.d.mts in the test TypeScript project.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@FlyOverCoderKY
FlyOverCoderKY merged commit 95312a5 into main Jul 31, 2026
2 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the grok/scheduler-phase-5-release branch July 31, 2026 23:21

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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] ?? {})) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

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.

2 participants