Fix v4 release workflow (#14167)

This PR fixes the release workflow

- We added a postbuild step so that any arguments/flags passed to the
`pnpm run build` command are forwarded to the underlying command.
- We made sure that we run any `pnpm` specific flags before the actual
command
- Cleaned up the CI workflow a bit
This commit is contained in:
Robin Malfait 2024-08-09 19:57:16 +02:00 committed by GitHub
parent f5f91ce9de
commit 558dcd568b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 8 deletions

View File

@ -62,7 +62,7 @@ jobs:
- name: Lint
run: pnpm run lint
# Only lint on linux to avoind \r\n line ending errors
# Only lint on linux to avoid \r\n line ending errors
if: matrix.runner == 'ubuntu-latest'
- name: Test

View File

@ -114,10 +114,6 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup cross compile toolchain
if: ${{ matrix.setup }}
run: ${{ matrix.setup }}
- name: Install Rust (Stable)
if: ${{ matrix.download }}
run: |
@ -130,7 +126,7 @@ jobs:
run: pnpm install --ignore-scripts --filter=!./playgrounds/*
- name: Build release
run: pnpm run build --filter ${{ env.OXIDE_LOCATION }}
run: pnpm run --filter ${{ env.OXIDE_LOCATION }} build
env:
RUST_TARGET: ${{ matrix.target }}
JEMALLOC_SYS_WITH_LG_PAGE: ${{ matrix.page-size }}
@ -195,7 +191,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.target }}-oxide-${{ hashFiles('./crates/**/*') }}
- name: Install dependencies
run: pnpm install --ignore-scripts --filter=!./playgrounds/*
run: pnpm --filter=!./playgrounds/* install --ignore-scripts
- name: Build Tailwind CSS
run: pnpm run build

View File

@ -34,7 +34,8 @@
"scripts": {
"format": "prettier --write .",
"lint": "prettier --check . && turbo lint",
"build": "turbo build --filter=!./playgrounds/* && node ./scripts/pack-packages.mjs",
"build": "turbo build --filter=!./playgrounds/*",
"postbuild": "node ./scripts/pack-packages.mjs",
"dev": "turbo dev --filter=!./playgrounds/*",
"test": "cargo test && vitest run",
"test:integrations": "vitest --root=./integrations --no-file-parallelism",