Skip to content

Commit d3b412f

Browse files
authored
fix(ci): update snapshots after CDK version sync in release workflow (#1033)
The release workflow syncs @aws/agentcore-cdk to the latest npm version in the asset template, but never updates the snapshot file. This causes the asset snapshot test to fail because the snapshot still holds the old version string.
1 parent ad59fc0 commit d3b412f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release-main-and-preview.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
fs.writeFileSync('$TEMPLATE_PKG', JSON.stringify(pkg, null, 2) + '\n');
121121
"
122122
echo "✅ Updated @aws/agentcore-cdk: $CURRENT_CDK -> $LATEST_CDK"
123+
npm run test:update-snapshots
123124
fi
124125
fi
125126
@@ -218,6 +219,7 @@ jobs:
218219
fs.writeFileSync('$TEMPLATE_PKG', JSON.stringify(pkg, null, 2) + '\n');
219220
"
220221
echo "✅ Updated @aws/agentcore-cdk: $CURRENT_CDK -> $LATEST_CDK"
222+
npm run test:update-snapshots
221223
fi
222224
fi
223225

0 commit comments

Comments
 (0)