Skip to content

Commit 37665a3

Browse files
fix(ci): move snapshot update after build step in release workflow (#849)
The snapshot update requires built output, so it must run after npm run build, not before.
1 parent 6f87f04 commit 37665a3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@ jobs:
134134
echo "branch=release/v$NEW_VERSION" >> $GITHUB_OUTPUT
135135
echo "New version: $NEW_VERSION"
136136
137-
- name: Update snapshots after CDK sync
138-
run: |
139-
npm run test:update-snapshots
140-
echo "✓ Snapshots updated"
141-
142137
- name: Regenerate JSON schema
143138
run: |
144139
npm run build
145140
node scripts/generate-schema.mjs
146141
npx prettier --write schemas/
147142
echo "✓ JSON schema regenerated and formatted"
148143
144+
- name: Update snapshots after CDK sync
145+
run: |
146+
npm run test:update-snapshots
147+
echo "✓ Snapshots updated"
148+
149149
- name: Create release branch and PR
150150
env:
151151
NEW_VERSION: ${{ steps.bump.outputs.version }}

0 commit comments

Comments
 (0)