Skip to content

Commit 35bc28b

Browse files
authored
Ensure we set the version before running build (#15971)
This PR ensures we set the version before running the build. Otherwise the embedded version number is incorrect.
1 parent 515a9bd commit 35bc28b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release-insiders.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ jobs:
121121
- name: Install dependencies
122122
run: pnpm install --ignore-scripts --filter=!./playgrounds/*
123123

124+
- name: 'Version based on commit: 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}'
125+
run: pnpm run version-packages 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}
126+
124127
- name: Build release
125128
run: pnpm run --filter ${{ env.OXIDE_LOCATION }} build
126129
env:
@@ -216,12 +219,12 @@ jobs:
216219
cp bindings-x86_64-unknown-linux-gnu/* ./npm/linux-x64-gnu/
217220
cp bindings-x86_64-unknown-linux-musl/* ./npm/linux-x64-musl/
218221
219-
- name: Build Tailwind CSS
220-
run: pnpm run build
221-
222222
- name: 'Version based on commit: 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}'
223223
run: pnpm run version-packages 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}
224224

225+
- name: Build Tailwind CSS
226+
run: pnpm run build
227+
225228
- name: Run pre-publish optimizations scripts
226229
run: node ./scripts/pre-publish-optimizations.mjs
227230

0 commit comments

Comments
 (0)