From 80d40bd5ca2ca0e0b7ea2826087329120611ba3d Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 28 Jan 2025 15:39:34 +0100 Subject: [PATCH] ensure we set the version before running build --- .github/workflows/release-insiders.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-insiders.yml b/.github/workflows/release-insiders.yml index e7f564df2b1a..3815e0731ddb 100644 --- a/.github/workflows/release-insiders.yml +++ b/.github/workflows/release-insiders.yml @@ -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