Repository navigation
Conversation
- Scope workflow permissions to contents: read; move npm release and GitHub Packages publishing into separate jobs that need the build and get id-token/packages write only where required. - Compute the version once and pass it to every job via job outputs. - Replace the global replace-in-files-cli install with scripts/set-version.mjs (Node built-ins only). - Pin actions to commit SHAs. - Only tolerate "already published" on GitHub Packages pushes. - Use setup-node npm caching, add a concurrency group, lint once on ubuntu, and test Node 22 on ubuntu. - Group example-app Dependabot updates separately from SDK updates.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟡 Changes recommended
The publication glob publishes dependent SDKs before their required dependencies, so a later publish failure can leave the CI tag pointing to an uninstallable package.
1 open issue
What changed in this PR
Hardens CI and package publishing for the SDK monorepo by separating validation from privileged publishing.
Changes:
- Restricts permissions, pins actions, and isolates publish jobs.
- Centralizes version stamping, updates caching, and adds Node 22 coverage.
- Separates example dependency updates from SDK updates.
| File | Description |
|---|---|
scripts/set-version.mjs |
Adds dependency-free version stamping. |
eslint.config.mjs |
Excludes scripts from typed linting. |
.github/workflows/build.yml |
Separates publishing, tightens permissions, and expands CI coverage. |
.github/dependabot.yml |
Groups example dependencies separately. |
Review effort: Balanced
The packages/* glob published angularjs and browser before core, so a failed run could leave a CI tag on a package whose exact dependency version didn't exist.
ejsmith
marked this pull request as draft
December 2, 2026 03:20
niemyjski
marked this pull request as ready for review
December 2, 2026 19:17
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.

What changed
contents: read. Publishing moved out of the build matrix into two jobs thatneeds: build. Each rebuilds from a clean checkout with the version computed once in a newVersionjob and passed through job outputs:Publish Release Packagesruns onrefs/tags/v*only, withid-token: writeandenvironment: npm-release.Push GitHub CI Packagesruns on non-PR branch pushes with a prerelease version (same condition as before), withpackages: write.scripts/set-version.mjs(Node built-ins only) replaces the unpinned globalreplace-in-files-cliinstall. I ran both in scratch copies and the output was byte-identical, with 58 replacements across 17 files.# vX.Y.Zcomment.minver-clistays on 7.0.0.|| trueis gone. Each package is skipped only ifnpm viewshows that exact version already exists; any other publish failure fails the job.setup-nodecache: npmand removed thenode_modulescache.example-dependenciesgroup, so a broken framework bump can't block SDK updates. Dependencies shared with the SDK packages stay innpm-dependencies. Cooldowns are unchanged. Groups match by dependency name, so a new example-only dependency needs adding to the list.scripts/is excluded from ESLint (typed linting has no Node types for it). Prettier still checks it.Triggers, published refs, the workflow file name and the npm publish command are unchanged, so the npm trusted-publisher binding still applies.
Follow-up (repo settings, not changed here)
npm-releaseenvironment, such as a required reviewer and limiting deployments tov*tags. GitHub creates the environment without protection on first use.npm-release. If it names none, nothing needs to change.