Skip to content

Commit e141c1e

Browse files
oz-release-app[bot]github-actions[bot]pasevin
authored
Version Packages (#116)
* Version Packages * fix(ci): disable husky hooks in update-versions workflow (#97) * chore(common): update export versions * Version Packages * fix(ci): remove extra quote in export-testing workflow token parameter (#98) * Version Packages * fix(ci): checkout proper branch before committing in update-versions workflow (#100) * feat(builder): replace contracts wizard icon with custom SVG (#99) * Version Packages * chore: update export versions * Version Packages * chore: update export versions * fix(builder): correct snapshot update command in export version script - Fix updateSnapshots() to target specific export tests instead of all tests - Ensures changesets bumps update both versions.ts and test snapshots correctly - Prevents snapshot test failures in changesets PRs like #116 * fix(ci): update workflow to commit both versions.ts and snapshot files - Fix update-versions.yml to check for changes in both files - Commit both versions.ts and snapshot files when updating versions - Ensures complete automation of version bumps with correct snapshots * fix(builder): always update snapshots regardless of versions.ts changes - Fix critical logic bug where snapshots weren't updated when versions.ts was already current - Ensures snapshots always match current package versions - Resolves snapshot test failures in changesets PRs like #116 - Snapshots are now updated unconditionally to prevent stale snapshot issues * fix(ci): add build step before snapshot updates in update-versions workflow - Fix CI build dependency issue where snapshot tests fail due to unbuilt packages - Add 'pnpm run build' step before running update-export-versions - Ensures adapter packages are built and available for import during snapshot tests - Resolves 'Failed to resolve entry for package' errors in CI environment * chore: update export versions and test snapshots --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Aleksandr Pasevin <pasevin@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: oz-release-app[bot] <205211949+oz-release-app[bot]@users.noreply.github.com>
1 parent 48e9ad7 commit e141c1e

30 files changed

Lines changed: 165 additions & 63 deletions

.changeset/eighty-parents-stand.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/red-turkeys-repair.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/solid-hotels-juggle.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/wet-nights-write.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/update-versions.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ jobs:
4444
- name: Install dependencies
4545
run: pnpm install
4646

47+
- name: Build all packages
48+
run: pnpm run build
49+
4750
- name: Update export versions
4851
run: pnpm run update-export-versions
4952

5053
- name: Check for changes
5154
id: check-changes
5255
run: |
53-
if git diff --exit-code packages/builder/src/export/versions.ts; then
56+
# Check if either versions.ts or snapshot files have changed
57+
if git diff --exit-code packages/builder/src/export/versions.ts packages/builder/src/export/__tests__/__snapshots__/; then
5458
echo "changed=false" >> $GITHUB_OUTPUT
5559
else
5660
echo "changed=true" >> $GITHUB_OUTPUT
@@ -67,6 +71,7 @@ jobs:
6771
# Checkout the proper branch (handle both PR and push events)
6872
BRANCH_NAME="${{ github.head_ref || github.ref_name }}"
6973
git checkout "$BRANCH_NAME"
70-
git add packages/builder/src/export/versions.ts
71-
git commit -m "chore: update export versions"
74+
# Add both versions.ts and any updated snapshot files
75+
git add packages/builder/src/export/versions.ts packages/builder/src/export/__tests__/__snapshots__/
76+
git commit -m "chore: update export versions and test snapshots"
7277
git push origin "$BRANCH_NAME"

packages/adapter-evm/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @openzeppelin/transaction-form-adapter-evm
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- [#106](https://github.com/OpenZeppelin/contracts-ui-builder/pull/106) [`ce96c10`](https://github.com/OpenZeppelin/contracts-ui-builder/commit/ce96c104e9e5df22ba335a8746cda740a70dbd0b) Thanks [@pasevin](https://github.com/pasevin)! - Resolve legacy OpenZeppelin proxy implementation/admin via storage slots; expose adminAddress in proxy info; delegate auto-query filtering to adapter to avoid admin-only getters; add storage-slot debug logs.
8+
9+
### Patch Changes
10+
11+
- Updated dependencies [[`ce96c10`](https://github.com/OpenZeppelin/contracts-ui-builder/commit/ce96c104e9e5df22ba335a8746cda740a70dbd0b)]:
12+
- @openzeppelin/contracts-ui-builder-types@0.4.0
13+
- @openzeppelin/contracts-ui-builder-react-core@0.2.5
14+
- @openzeppelin/contracts-ui-builder-ui@0.5.1
15+
- @openzeppelin/contracts-ui-builder-utils@0.4.1
16+
317
## 0.4.0
418

519
### Minor Changes

packages/adapter-evm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openzeppelin/contracts-ui-builder-adapter-evm",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"private": false,
55
"description": "EVM Adapter for Contracts UI Builder",
66
"keywords": [

packages/adapter-midnight/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @openzeppelin/transaction-form-adapter-midnight
22

3+
## 0.1.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`ce96c10`](https://github.com/OpenZeppelin/contracts-ui-builder/commit/ce96c104e9e5df22ba335a8746cda740a70dbd0b)]:
8+
- @openzeppelin/contracts-ui-builder-types@0.4.0
9+
- @openzeppelin/contracts-ui-builder-react-core@0.2.5
10+
- @openzeppelin/contracts-ui-builder-ui@0.5.1
11+
- @openzeppelin/contracts-ui-builder-utils@0.4.1
12+
313
## 0.1.3
414

515
### Patch Changes

packages/adapter-midnight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openzeppelin/contracts-ui-builder-adapter-midnight",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Midnight Adapter for Contracts UI Builder",
55
"keywords": [
66
"openzeppelin",

packages/adapter-solana/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @openzeppelin/transaction-form-adapter-solana
22

3+
## 0.0.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`ce96c10`](https://github.com/OpenZeppelin/contracts-ui-builder/commit/ce96c104e9e5df22ba335a8746cda740a70dbd0b)]:
8+
- @openzeppelin/contracts-ui-builder-types@0.4.0
9+
- @openzeppelin/contracts-ui-builder-utils@0.4.1
10+
311
## 0.0.8
412

513
### Patch Changes

0 commit comments

Comments
 (0)