From d801d8dc5492efec5b830188c2061e31b0379470 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Fri, 11 Apr 2025 18:14:48 +0200 Subject: [PATCH] Fix publish step on CI (#17654) To publish the newly adde WASM builds, we rely on the `node-linker=hoisted` `.npmrc` flag that isn't read when `pnpm --recursive` is used. To work around it, this PR excludes the wasm package from the `--recursive` part and manually published it afterwards. ## Test Plan Ensured this does not error now when trying a `--dry run`. Screenshot 2025-04-11 at 17 43 38 --- .github/workflows/release-insiders.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-insiders.yml b/.github/workflows/release-insiders.yml index 234fb9a5b..a78eafea2 100644 --- a/.github/workflows/release-insiders.yml +++ b/.github/workflows/release-insiders.yml @@ -298,7 +298,10 @@ jobs: path: dist/*.tgz - name: Publish - run: pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks + run: | + pnpm --recursive --filter="\!@tailwindcss/oxide-wasm32-wasi" publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks + # The wasm package needs a special npm config that isn't read when pnpm --recursive is used + pushd crates/node/npm/wasm32-wasi; pnpm publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks; popd; env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0347e8aeb..c940b55e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -291,7 +291,10 @@ jobs: echo "TAILWINDCSS_VERSION=$(node -e 'console.log(require(`./packages/tailwindcss/package.json`).version);')" >> $GITHUB_ENV - name: Publish - run: pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks + run: | + pnpm --recursive --filter="\!@tailwindcss/oxide-wasm32-wasi" publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks + # The wasm package needs a special npm config that isn't read when pnpm --recursive is used + pushd crates/node/npm/wasm32-wasi; pnpm publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks; popd; env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}