Skip to content

feat(ci): add RC adapter resolution for staging builds#97

Merged
pasevin merged 1 commit into001-capability-adaptersfrom
fix/staging-rc-adapter-resolution
Apr 3, 2026
Merged

feat(ci): add RC adapter resolution for staging builds#97
pasevin merged 1 commit into001-capability-adaptersfrom
fix/staging-rc-adapter-resolution

Conversation

@pasevin
Copy link
Copy Markdown
Collaborator

@pasevin pasevin commented Apr 3, 2026

Summary

  • Ports the RC adapter resolution mechanism from ui-builder so the staging Docker build can consume pre-release adapter packages.
  • Adds scripts/resolve-staging-adapters.cjs which queries npm for rc and latest dist-tags per adapter package, compares their semver base versions, and picks the newer one. If the RC base is higher, it runs pnpm add --save-exact to surgically override just the adapter packages while preserving the rest of the frozen lockfile.
  • Updates the Dockerfile to accept ADAPTER_DIST_TAG as a build argument and conditionally run the resolution script between the frozen-lockfile install and the build step.
  • Passes ADAPTER_DIST_TAG=rc in the staging workflow (docker-stg.yaml) build-args.

Adapter packages resolved: adapter-evm, adapter-polkadot, adapter-stellar, adapters-vite.

Test plan

  • Trigger staging workflow and verify adapter packages are resolved to RC versions in Docker build logs
  • Verify production Docker build (no ADAPTER_DIST_TAG) remains unaffected (resolution step is a no-op)

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.
@pasevin pasevin changed the base branch from main to 001-capability-adapters April 3, 2026 09:05
@pasevin pasevin merged commit e140ae3 into 001-capability-adapters Apr 3, 2026
11 checks passed
@pasevin pasevin deleted the fix/staging-rc-adapter-resolution branch April 3, 2026 09:06
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant