Commit Graph
17 Commits
Author SHA1 Message Date
Wawa 8921e341cc Bump inter-package peerDeps to ^0.8.0 + fix release.yml sync bug
Two bugs in one fix:

1. The 0.8.0 release commit only bumped .version, not the inter-package
   peerDependencies / devDependencies. So the published packages still
   declared peer constraints like "@pascal-app/viewer": "^0.7.0". Caret
   in semver 0.x doesn't allow 0.8.0 to satisfy ^0.7.0, so bun resolves
   workspace consumers (and apps/editor's deep import paths) to the
   stale npm-published 0.7.0 instead of the workspace 0.8.0 — meaning
   local edits never show up in apps/editor or any linked consumer.

2. The release.yml sync step was using $GITHUB_ENV to read back the new
   versions in the same step, which doesn't work — env-file writes only
   surface in subsequent steps. Switched to a bash associative array
   (NEW_VERSIONS) for in-step lookup, kept the $GITHUB_ENV write for the
   downstream publish/commit/tag steps. Also added a final "refs after
   sync" debug print so this is visible in the workflow log.

After this lands and you bun install, packages/editor/node_modules/@pascal-app/viewer
should symlink to the workspace packages/viewer/, not to .bun/@pascal-app+viewer@0.7.0.
Future releases will sync peerDeps correctly on their own.
2026-05-10 13:12:08 +00:00
Wawa e618175bba Reset core/viewer/editor/mcp packages and apps/editor from private-editor
Wholesale swap of packages/{core,viewer,editor,mcp} and apps/editor with the
versions from the private editor repo, which is the production source of truth.

Setup changes:
- packages/{core,viewer,editor} versions held at 0.7.0 baseline (matching
  the most recent published release) so a bump=minor publishes 0.8.0
- packages/mcp held at 0.1.1 (never published; first publish will go through
  the new release.yml flow)
- peerDependencies and devDependencies for inter-package @pascal-app/*
  references pinned to ^0.7.0 instead of '*' / 'workspace:*' so they are
  valid for npm consumers
- Root package.json: TypeScript bumped to 6.0.2, added overrides for
  @types/react, @types/react-dom, @types/three to prevent JSX namespace
  fragmentation across the workspace
- release.yml extended to also publish editor and mcp; 'both' option renamed
  to 'all'; added a sync step that updates inter-package peerDeps/devDeps to
  match the new versions on every bump (so viewer/editor/mcp tarballs always
  reference the version of core they were built against)
- Root scripts gained release:editor and release:mcp shortcuts

Verification:
- bun install --frozen-lockfile is consistent
- packages/{core,viewer,mcp} build cleanly, dist/index.d.ts emitted
- packages/editor check-types reports 21 pre-existing errors, identical to
  what private-editor currently reports

Open PRs against editor-v2 will need rebasing/conflict resolution.
2026-05-09 20:52:26 +00:00
Aymeric Rabot 8dfd1a9429 fix(mcp): add shared operations and secure scene APIs 2026-04-27 17:10:25 -04:00
Adrian PerezandClaude Opus 4.7 fc6bbdf376 chore(mcp): add CI workflow and document cross-cutting changes
- .github/workflows/mcp-ci.yml: runs on pushes to main and PRs
  touching packages/mcp/, packages/core/, or bun.lock. Installs with
  Bun 1.3.0, builds core then mcp, runs bun test, and runs biome.
- packages/mcp/CROSS_CUTTING.md: documents the two additive changes
  outside the package boundary (core exports map, this CI workflow)
  plus observations about SiteNode.children inconsistency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 17:51:39 +02:00
Aymeric RabotandClaude Opus 4.6 10449c5cc5 fix: replace npm version with jq to avoid peer dep conflicts in CI
npm version triggers npm install which fails on peer dependency
resolution in workspace monorepos. Use jq for version bumping instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 23:20:37 -04:00
Anton Pascal 0fd8656090 chore: clean up release workflow
Use bypass-2FA token via NPM_TOKEN secret. No --provenance
(causes npm CLI crash on GH runners).
2026-02-18 21:56:06 +00:00
Anton Pascal bffab3dd4c debug: capture npm debug logs and verify publish 2026-02-18 21:49:05 +00:00
Anton Pascal bbe5124800 fix: proper auth — NPM_TOKEN env + OIDC provenance
Previous runs had NODE_AUTH_TOKEN set to a garbage placeholder
because we removed the env var from publish steps. Now properly
passing secrets.NPM_TOKEN as NODE_AUTH_TOKEN.
2026-02-18 21:46:41 +00:00
Anton Pascal 6e7a75f476 fix: try Node 20 + capture debug log on failure 2026-02-18 21:41:54 +00:00
Anton Pascal bf30c586eb fix: use OIDC trusted publishers instead of npm token
The npm package has trusted publishers (OIDC) configured.
Remove manual token auth — let GitHub Actions OIDC handle it.
2026-02-18 21:38:26 +00:00
Anton Pascal e3c3331df0 debug: add verbose logging to npm publish 2026-02-18 21:35:28 +00:00
Anton Pascal f384f55497 fix: manual npmrc auth instead of setup-node registry 2026-02-18 21:32:38 +00:00
Anton Pascal 9b77918e41 fix: pin npm@10 to avoid publish bug 2026-02-18 21:29:36 +00:00
Anton Pascal 5495c1f5fb fix: remove --provenance flag from npm publish 2026-02-18 21:23:38 +00:00
Anton Pascal cbcdf98edf fix: use NPM_TOKEN secret in release workflow 2026-02-18 20:48:25 +00:00
Anton Pascal c788c981ee ci: use OIDC trusted publishing instead of NPM_TOKEN
- Added environment: npm + id-token: write permission
- Added --provenance flag for supply chain security
- Removed NPM_TOKEN secret dependency
- Added setup-node with registry-url for OIDC auth
2026-02-18 20:28:43 +00:00
Anton Pascal 90b29e619e ci: add manual release workflow for @pascal-app/core and @pascal-app/viewer 2026-02-18 20:25:03 +00:00