feat(registry): Gitea npm registry publish config + Changesets

- .npmrc: @mosaic scope points to Gitea registry
- Changesets initialized with initial minor release
- publishConfig added to all packages
- Woodpecker publish step on main branch
This commit is contained in:
2026-03-06 18:39:48 -06:00
parent 04d13e510c
commit af514893cd
8 changed files with 56 additions and 4 deletions

8
.changeset/README.md Normal file
View File

@@ -0,0 +1,8 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).

11
.changeset/config.json Normal file
View File

@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}

View File

@@ -0,0 +1,7 @@
---
"@mosaic/types": minor
"@mosaic/queue": minor
"@mosaic/openclaw-context": minor
---
Initial release of the @mosaic/* monorepo packages.

1
.npmrc
View File

@@ -1 +1,2 @@
@mosaic:registry=https://git.mosaicstack.dev/api/packages/mosaic/npm
//git.mosaicstack.dev/api/packages/mosaic/npm/:_authToken=${GITEA_NPM_TOKEN}

View File

@@ -33,3 +33,17 @@ steps:
image: valkey/valkey:8-alpine
environment:
- ALLOW_EMPTY_PASSWORD=yes
- name: publish
image: node:22-alpine
depends_on: [test]
when:
branch: main
event: push
environment:
GITEA_NPM_TOKEN:
from_secret: gitea_npm_token
commands:
- corepack enable
- pnpm changeset version || true
- pnpm changeset publish

View File

@@ -30,6 +30,7 @@
"node": ">=20.0.0"
},
"publishConfig": {
"registry": "https://git.mosaicstack.dev/api/packages/mosaic/npm",
"access": "public"
},
"dependencies": {

View File

@@ -10,7 +10,9 @@
"types": "./dist/index.d.ts"
}
},
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"typecheck": "tsc --noEmit",
@@ -19,5 +21,9 @@
},
"devDependencies": {
"typescript": "^5"
},
"publishConfig": {
"registry": "https://git.mosaicstack.dev/api/packages/mosaic/npm",
"access": "public"
}
}

View File

@@ -2,7 +2,7 @@
"name": "@mosaic/openclaw-context",
"version": "0.1.0",
"type": "module",
"description": "OpenClaw \u2192 OpenBrain context engine plugin",
"description": "OpenClaw OpenBrain context engine plugin",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
@@ -34,5 +34,9 @@
"openbrain",
"context-engine",
"plugin"
]
}
],
"publishConfig": {
"registry": "https://git.mosaicstack.dev/api/packages/mosaic/npm",
"access": "public"
}
}