From 7194f02d37c4c81d9b0d7d0ecb42ae35c7574bad Mon Sep 17 00:00:00 2001 From: Jesse Turner Date: Tue, 14 Apr 2026 22:46:42 +0000 Subject: [PATCH] fix(ci): move snapshot update after build step in release workflow The snapshot update requires built output, so it must run after npm run build, not before. --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dca2fb38..013532be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,11 +134,6 @@ jobs: echo "branch=release/v$NEW_VERSION" >> $GITHUB_OUTPUT echo "New version: $NEW_VERSION" - - name: Update snapshots after CDK sync - run: | - npm run test:update-snapshots - echo "✓ Snapshots updated" - - name: Regenerate JSON schema run: | npm run build @@ -146,6 +141,11 @@ jobs: npx prettier --write schemas/ echo "✓ JSON schema regenerated and formatted" + - name: Update snapshots after CDK sync + run: | + npm run test:update-snapshots + echo "✓ Snapshots updated" + - name: Create release branch and PR env: NEW_VERSION: ${{ steps.bump.outputs.version }}