Skip to content

Commit d801d8d

Browse files
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`. <img width="1273" alt="Screenshot 2025-04-11 at 17 43 38" src="https://github.com/user-attachments/assets/68a28552-0125-4da1-92ff-74e58368abe4" />
1 parent 83ce4c0 commit d801d8d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release-insiders.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ jobs:
298298
path: dist/*.tgz
299299

300300
- name: Publish
301-
run: pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
301+
run: |
302+
pnpm --recursive --filter="\!@tailwindcss/oxide-wasm32-wasi" publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
303+
# The wasm package needs a special npm config that isn't read when pnpm --recursive is used
304+
pushd crates/node/npm/wasm32-wasi; pnpm publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks; popd;
302305
env:
303306
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
304307

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ jobs:
291291
echo "TAILWINDCSS_VERSION=$(node -e 'console.log(require(`./packages/tailwindcss/package.json`).version);')" >> $GITHUB_ENV
292292
293293
- name: Publish
294-
run: pnpm --recursive publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
294+
run: |
295+
pnpm --recursive --filter="\!@tailwindcss/oxide-wasm32-wasi" publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks
296+
# The wasm package needs a special npm config that isn't read when pnpm --recursive is used
297+
pushd crates/node/npm/wasm32-wasi; pnpm publish --tag ${{ env.RELEASE_CHANNEL }} --no-git-checks; popd;
295298
env:
296299
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
297300

0 commit comments

Comments
 (0)