Adds npm package publishing to the Woodpecker CI pipeline so all @mosaic/* packages are available from the Gitea npm registry. This enables standalone installation via npm install @mosaic/mosaic.
Changes
Publish Pipeline (.woodpecker/publish.yml)
New publish-npm step runs after build, parallel with Docker image builds
Publishes all non-private @mosaic/* packages to Gitea npm registry
Uses pnpm publish which auto-resolves workspace:* → concrete versions
Publish pipeline:
- Add publish-npm step to .woodpecker/publish.yml — publishes all
@mosaic/* packages to Gitea npm registry on main push/tag
- Requires gitea_npm_token Woodpecker secret (package:write scope)
- publish-npm runs after build, parallel with Docker image builds
- pnpm publish resolves workspace:* to concrete versions automatically
Package configuration:
- All 20 packages versioned at 0.0.1-alpha.1
- publishConfig added to all packages (Gitea registry, public access)
- files field added to all packages (ship only dist/)
- @mosaic/forge includes pipeline/ assets in published package
Meta package (@mosaic/mosaic):
- Now depends on @mosaic/forge, @mosaic/macp, @mosaic/prdy,
@mosaic/quality-rails, @mosaic/types
- npm install @mosaic/mosaic pulls in the standalone framework
Build fixes:
- Fix forge and macp tsconfig rootDir: '.' -> 'src' so dist/index.js
resolves correctly (was dist/src/index.js)
- Exclude __tests__ and vitest.config from build includes
- Clean stale build artifacts from old rootDir config
Required Woodpecker secret:
woodpecker secret add mosaic/mosaic-stack \
--name gitea_npm_token --value '<token>' \
--event push,manual,tag
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Adds npm package publishing to the Woodpecker CI pipeline so all
@mosaic/*packages are available from the Gitea npm registry. This enables standalone installation vianpm install @mosaic/mosaic.Changes
Publish Pipeline (
.woodpecker/publish.yml)publish-npmstep runs afterbuild, parallel with Docker image builds@mosaic/*packages to Gitea npm registrypnpm publishwhich auto-resolvesworkspace:*→ concrete versionsPackage Configuration (20 packages)
0.0.1-alpha.1publishConfigadded: Gitea registry, public accessfilesfield added: ship onlydist/(forge also shipspipeline/)Meta Package (
@mosaic/mosaic)@mosaic/forge,@mosaic/macp,@mosaic/prdy,@mosaic/quality-rails,@mosaic/typesnpm install @mosaic/mosaicpulls in the full standalone frameworkBuild Fixes
tsconfig.jsonrootDir(.→src) sodist/index.jsresolves correctly__tests__/andvitest.config.tsfrom build includesRequired Secret
Token needs
package:writescope from https://git.mosaicstack.dev/user/settings/applicationsTesting
pnpm typecheck— 36/36 passpnpm build— 20/20 passpnpm packon@mosaic/mosaic— workspace deps resolve to0.0.1-alpha.1pnpm packon@mosaic/forge—pipeline/assets included,dist/index.jsat correct pathPublish pipeline: - Add publish-npm step to .woodpecker/publish.yml — publishes all @mosaic/* packages to Gitea npm registry on main push/tag - Requires gitea_npm_token Woodpecker secret (package:write scope) - publish-npm runs after build, parallel with Docker image builds - pnpm publish resolves workspace:* to concrete versions automatically Package configuration: - All 20 packages versioned at 0.0.1-alpha.1 - publishConfig added to all packages (Gitea registry, public access) - files field added to all packages (ship only dist/) - @mosaic/forge includes pipeline/ assets in published package Meta package (@mosaic/mosaic): - Now depends on @mosaic/forge, @mosaic/macp, @mosaic/prdy, @mosaic/quality-rails, @mosaic/types - npm install @mosaic/mosaic pulls in the standalone framework Build fixes: - Fix forge and macp tsconfig rootDir: '.' -> 'src' so dist/index.js resolves correctly (was dist/src/index.js) - Exclude __tests__ and vitest.config from build includes - Clean stale build artifacts from old rootDir config Required Woodpecker secret: woodpecker secret add mosaic/mosaic-stack \ --name gitea_npm_token --value '<token>' \ --event push,manual,tag