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.
This commit is contained in:
Robin Malfait 2025-01-28 16:21:18 +01:00 committed by GitHub
parent 515a9bdc5f
commit 35bc28b16b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,6 +121,9 @@ jobs:
- name: Install dependencies
run: pnpm install --ignore-scripts --filter=!./playgrounds/*
- name: 'Version based on commit: 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}'
run: pnpm run version-packages 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}
- name: Build release
run: pnpm run --filter ${{ env.OXIDE_LOCATION }} build
env:
@ -216,12 +219,12 @@ jobs:
cp bindings-x86_64-unknown-linux-gnu/* ./npm/linux-x64-gnu/
cp bindings-x86_64-unknown-linux-musl/* ./npm/linux-x64-musl/
- name: Build Tailwind CSS
run: pnpm run build
- name: 'Version based on commit: 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}'
run: pnpm run version-packages 0.0.0-${{ env.RELEASE_CHANNEL }}.${{ env.SHA_SHORT }}
- name: Build Tailwind CSS
run: pnpm run build
- name: Run pre-publish optimizations scripts
run: node ./scripts/pre-publish-optimizations.mjs