From 34fdaa68d9fda7e14e226d5e172ff26ef18645fb Mon Sep 17 00:00:00 2001 From: Aidan Daly Date: Wed, 29 Apr 2026 14:03:04 -0400 Subject: [PATCH] fix(ci): update snapshots after CDK version sync in release workflow 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. --- .github/workflows/release-main-and-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-main-and-preview.yml b/.github/workflows/release-main-and-preview.yml index 6f40bf756..7f0790fc6 100644 --- a/.github/workflows/release-main-and-preview.yml +++ b/.github/workflows/release-main-and-preview.yml @@ -120,6 +120,7 @@ jobs: fs.writeFileSync('$TEMPLATE_PKG', JSON.stringify(pkg, null, 2) + '\n'); " echo "✅ Updated @aws/agentcore-cdk: $CURRENT_CDK -> $LATEST_CDK" + npm run test:update-snapshots fi fi @@ -218,6 +219,7 @@ jobs: fs.writeFileSync('$TEMPLATE_PKG', JSON.stringify(pkg, null, 2) + '\n'); " echo "✅ Updated @aws/agentcore-cdk: $CURRENT_CDK -> $LATEST_CDK" + npm run test:update-snapshots fi fi