feat(ci): add RC adapter resolution for staging builds#97
Merged
pasevin merged 1 commit into001-capability-adaptersfrom Apr 3, 2026
Merged
Conversation
Port the RC adapter resolution mechanism from ui-builder so staging Docker builds can consume pre-release adapter packages. - Add scripts/resolve-staging-adapters.cjs that queries npm for "rc" and "latest" dist-tags, picks the newer version, and runs a surgical pnpm add --save-exact for adapter packages only. - Update Dockerfile with ADAPTER_DIST_TAG build arg and resolution step between frozen-lockfile install and build. - Pass ADAPTER_DIST_TAG=rc in the staging workflow build-args.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
scripts/resolve-staging-adapters.cjswhich queries npm forrcandlatestdist-tags per adapter package, compares their semver base versions, and picks the newer one. If the RC base is higher, it runspnpm add --save-exactto surgically override just the adapter packages while preserving the rest of the frozen lockfile.Dockerfileto acceptADAPTER_DIST_TAGas a build argument and conditionally run the resolution script between the frozen-lockfile install and the build step.ADAPTER_DIST_TAG=rcin the staging workflow (docker-stg.yaml) build-args.Adapter packages resolved:
adapter-evm,adapter-polkadot,adapter-stellar,adapters-vite.Test plan
ADAPTER_DIST_TAG) remains unaffected (resolution step is a no-op)