Skip to content

Commit 7cce88a

Browse files
committed
ci: regen dataflow in CI
1 parent 15a4c9e commit 7cce88a

2 files changed

Lines changed: 24 additions & 37 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ jobs:
3636
- name: Enable Corepack
3737
run: corepack enable
3838

39-
- name: Get pnpm store directory
40-
id: pnpm-cache
41-
shell: bash
42-
run: |
43-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
44-
45-
- name: Setup pnpm cache
46-
uses: actions/cache@v4
47-
with:
48-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
49-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50-
restore-keys: |
51-
${{ runner.os }}-pnpm-store-
52-
5339
- name: Install dependencies
5440
run: pnpm install
5541

@@ -76,20 +62,6 @@ jobs:
7662
- name: Enable Corepack
7763
run: corepack enable
7864

79-
- name: Get pnpm store directory
80-
id: pnpm-cache
81-
shell: bash
82-
run: |
83-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
84-
85-
- name: Setup pnpm cache
86-
uses: actions/cache@v4
87-
with:
88-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
89-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
90-
restore-keys: |
91-
${{ runner.os }}-pnpm-store-
92-
9365
- name: Install dependencies
9466
run: pnpm install
9567

@@ -101,6 +73,11 @@ jobs:
10173
max_attempts: 3
10274
command: npm i -g firebase-tools@14
10375

76+
- name: Regenerate DataConnect connector with Firebase 12
77+
run: |
78+
cd dataconnect
79+
firebase dataconnect:sdk:generate
80+
10481
- name: Run tests with emulator
10582
run: pnpm test:emulator
10683

@@ -120,27 +97,27 @@ jobs:
12097
fi
12198
fi
12299
done
123-
100+
124101
if [ -n "$MISSING_BUILDS" ]; then
125102
echo "❌ Build outputs missing for: $MISSING_BUILDS"
126103
exit 1
127104
fi
128-
105+
129106
echo "✅ All build outputs verified"
130107
131108
- name: Validate changesets
132109
run: |
133110
set -e
134111
CHANGESET_FILES=$(find .changeset -name "*.md" -type f ! -name "README.md" 2>/dev/null || true)
135-
112+
136113
if [ -z "$CHANGESET_FILES" ]; then
137114
echo "❌ No changesets found!"
138115
echo ""
139116
echo "Please create changesets locally with: pnpm changeset"
140117
echo "Changesets should be created during development, not during release."
141118
exit 1
142119
fi
143-
120+
144121
CHANGESET_COUNT=$(echo "$CHANGESET_FILES" | wc -l | tr -d ' ')
145122
echo "✅ Found $CHANGESET_COUNT changeset(s):"
146123
echo "$CHANGESET_FILES" | while read -r file; do
@@ -177,19 +154,19 @@ jobs:
177154
# Configure git user for changeset version command
178155
git config user.name "github-actions[bot]"
179156
git config user.email "github-actions[bot]@users.noreply.github.com"
180-
157+
181158
# Save current HEAD reference before making changes
182159
ORIGINAL_HEAD=$(git rev-parse HEAD)
183160
# Create a temporary branch for dry run with unique name
184161
FALLBACK_ID=${GITHUB_RUN_ID:-$RANDOM$RANDOM}
185162
TEMP_BRANCH="dry-run-temp-$FALLBACK_ID"
186163
git checkout -b "$TEMP_BRANCH"
187164
pnpm changeset version
188-
165+
189166
echo ""
190167
echo "🔍 Changed files:"
191168
git diff --name-status "$ORIGINAL_HEAD"
192-
169+
193170
echo ""
194171
echo "🔍 Package version changes:"
195172
VERSION_CHANGES=$(git diff "$ORIGINAL_HEAD" -- '**/package.json' | grep -E "^[+-]\s*\"version\"" || true)
@@ -198,10 +175,10 @@ jobs:
198175
else
199176
echo "$VERSION_CHANGES"
200177
fi
201-
178+
202179
# Clean up
203180
git checkout -
204181
git branch -D "$TEMP_BRANCH"
205-
182+
206183
echo ""
207184
echo "✅ Dry run completed successfully"

.github/workflows/tests.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
max_attempts: 3
6767
command: npm i -g firebase-tools@14
6868

69+
- name: Regenerate DataConnect connector with Firebase 12
70+
run: |
71+
cd dataconnect
72+
firebase dataconnect:sdk:generate
73+
6974
# Determine which packages have changed
7075
- name: Determine changed packages
7176
id: changes
@@ -133,6 +138,11 @@ jobs:
133138
max_attempts: 3
134139
command: npm i -g firebase-tools@14
135140

141+
- name: Regenerate DataConnect connector with Firebase 12
142+
run: |
143+
cd dataconnect
144+
firebase dataconnect:sdk:generate
145+
136146
# Build packages before testing
137147
- name: Build packages
138148
run: pnpm turbo build

0 commit comments

Comments
 (0)