Skip to content

ci: migrate workspace npm publishing from Wombat to OSS Exit Gate - #228

Merged
Eyas merged 2 commits into
google:mainfrom
alonsopf89:oss-exit-gate-migration
Nov 1, 2026
Merged

Eyas merged 2 commits into
google:mainfrom
alonsopf89:oss-exit-gate-migration

Conversation

@alonsopf89

@alonsopf89 alonsopf89 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Migrates schema-dts, schema-dts-gen, and schema-dts-lib workspace npm publishing from Wombat Dressing Room to OSS Exit Gate (b/496191090, b/576707149).

Key Changes

  • .npmrc & Workspace publishConfig.registry: Configures npm workspaces (schema-dts, schema-dts-gen, schema-dts-lib) to stage packages to https://us-npm.pkg.dev/oss-exit-gate-prod/schema-dts--npm/ without overriding the default registry.npmjs.org used by npm ci.
  • scripts/publish-exit-gate.sh (npm run release:exit-gate): Authenticates via google-artifactregistry-auth, builds and tests workspaces, stages selected (or all 3) workspace packages to Artifact Registry, and uploads a single atomic release manifest to gs://oss-exit-gate-prod-projects-bucket/schema-dts/npm/manifests/.
  • End-to-End Verification: Provisioned in Piper (cl/1004027981, cl/1004274924, cl/1004281963) and verified via Step 8 smoke test.

@alonsopf89

Copy link
Copy Markdown
Contributor Author

Hi @Eyas — the OSS Exit Gate production configuration (schema-dts/npm) and end-to-end Artifact Registry + GCS manifest smoke test are complete, and this PR is Ready for Review with all checks passing. Whenever you have a moment to review and merge, we will complete the final ownership handoff CL. Thanks!

@Eyas

Eyas commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

FWIW the correct link is b/576707149

@Eyas

Eyas commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

@alonsopf89 as implemented the npmrc changes seem to confuse the ci testing, causing it to fail. Can you help fix?

@alonsopf89

alonsopf89 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for catching that, @Eyas!

  1. Fixed .npmrc for CI (4796bd8): Removed the root registry=https://us-npm.pkg.dev/... override from .npmrc (keeping only //us-npm.pkg.dev/oss-exit-gate-prod/schema-dts--npm/:always-auth=true, matching react-schemaorg#63) so npm ci continues to install dependencies from registry.npmjs.org. In scripts/publish-exit-gate.sh, google-artifactregistry-auth now uses a temporary config file during release staging, while each workspace's publishConfig.registry targets Artifact Registry.
  2. Updated Tracker Link: Updated the PR description to reference b/576707149 (and updated react-schemaorg#63 to reference b/576708617).

All CI checks (Node.js CI / build (22.x), build (23.x), CodeQL, and cla/google) are now passing!

@Eyas
Eyas merged commit 0dc1d1f into google:main Nov 1, 2026
10 checks passed
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