Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .changepacks/changepack_log_workspacePublish20260824.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"changes": {
"bindings/devup-ui-wasm/package.json": "Patch",
"packages/bun-plugin/package.json": "Patch",
"packages/components/package.json": "Patch",
"packages/eslint-plugin/package.json": "Patch",
"packages/next-plugin/package.json": "Patch",
"packages/plugin-utils/package.json": "Patch",
"packages/react/package.json": "Patch",
"packages/reset-css/package.json": "Patch",
"packages/rsbuild-plugin/package.json": "Patch",
"packages/vite-plugin/package.json": "Patch",
"packages/webpack-plugin/package.json": "Patch"
},
"note": "Publish all npm packages with materialized workspace dependency versions",
"date": "2026-08-24T09:05:00.000Z"
}
4 changes: 2 additions & 2 deletions .changepacks/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"baseBranch": "main",
"latestPackage": null,
"publish": {
"node": "npm publish"
"node": "bun pm pack --quiet --filename .changepacks/publish.tgz && npm publish ../../.changepacks/publish.tgz"
},
"publishDryRun": {
"node": "npm publish --dry-run"
"node": "bun pm pack --quiet --filename .changepacks/publish.tgz && npm publish ../../.changepacks/publish.tgz --dry-run"
}
}
27 changes: 24 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,26 @@ jobs:
- run: bun run build
- name: Verify built package entry points
run: bun run verify:dist
- name: Verify publish tarballs
shell: bash
run: |
set -euo pipefail
for manifest in bindings/*/package.json packages/*/package.json; do
package_dir="$(dirname "$manifest")"
pack_dir="$RUNNER_TEMP/publish-verify/${package_dir//\//-}"
mkdir -p "$pack_dir"
(cd "$package_dir" && bun pm pack --quiet --destination "$pack_dir")
tarballs=("$pack_dir"/*.tgz)
if [[ "${#tarballs[@]}" -ne 1 ]]; then
echo "Expected one tarball for $package_dir" >&2
exit 1
fi
packed_manifest="$(tar -xOf "${tarballs[0]}" package/package.json)"
if grep -q 'workspace:' <<< "$packed_manifest"; then
echo "Unresolved workspace dependency in $package_dir" >&2
exit 1
fi
done
- run: |
bun run lint
# rust coverage issue
Expand Down Expand Up @@ -269,9 +289,10 @@ jobs:
# file `publish.yml`. npm matches that filename exactly, so renaming or
# moving this file breaks publishing until the entries are updated.
#
# The publish command itself is selected in .changepacks/config.json:
# changepacks defaults to `bun publish` because this repo has a bun.lock,
# and bun cannot do OIDC (oven-sh/bun#22423).
# The publish command itself is selected in .changepacks/config.json.
# Bun packs each workspace so dependency ranges are materialized, then
# npm publishes that tarball with OIDC (Bun cannot do OIDC itself:
# oven-sh/bun#22423).
- uses: changepacks/action@main
id: changepacks
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ playwright-report
.omc
.playwright-mcp
.omo
/.changepacks/publish.tgz
22 changes: 11 additions & 11 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading