Skip to content

Conversation

@pasevin
Copy link
Collaborator

@pasevin pasevin commented Nov 27, 2025

Summary

  • Add missing build step to check-versions.yml workflow
  • The workflow runs update-export-versions which needs built packages to run tests

Problem

The check-versions workflow was failing on the changeset-release PR with:

Error: Failed to resolve import "@openzeppelin/ui-builder-adapter-evm"

Root Cause

The update-export-versions script runs vitest tests only when versions change. The vitest plugin resolves adapter imports to ../adapter-evm/dist/index.js, which requires packages to be built.

PR Type Versions Match? Tests Run? Build Needed?
Regular PR ✅ Yes No No
Changeset Release ❌ No Yes Yes

This is why it worked before - regular PRs never triggered tests because versions were always in sync. Only the changeset-release PR has mismatched versions.

Fix

Add the build step (matching update-versions.yml):

- name: Build all packages
  run: pnpm run build
  env:
    NODE_OPTIONS: '--max-old-space-size=8192'

Test Plan

The check-versions workflow runs update-export-versions which needs
to run vitest tests when versions change. These tests require adapter
packages to be built (dist/index.js must exist) for the Vite plugin
to resolve dynamic imports.

Without the build step, tests fail with:
"Failed to resolve import @openzeppelin/ui-builder-adapter-evm"

This was never caught before because regular PRs have versions in sync
(no tests run). Only the changeset-release PR has version mismatches.
@pasevin pasevin requested a review from a team as a code owner November 27, 2025 15:10
@pasevin pasevin merged commit 25ec796 into main Nov 27, 2025
11 checks passed
@pasevin pasevin deleted the fix/check-versions-build-step branch November 27, 2025 15:15
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