diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 0000000..654c6d4 --- /dev/null +++ b/.changeset/README.md @@ -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). diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..a6e4a9d --- /dev/null +++ b/.changeset/config.json @@ -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": [] +} diff --git a/.changeset/initial-release.md b/.changeset/initial-release.md new file mode 100644 index 0000000..036e204 --- /dev/null +++ b/.changeset/initial-release.md @@ -0,0 +1,7 @@ +--- +"@mosaic/types": minor +"@mosaic/queue": minor +"@mosaic/openclaw-context": minor +--- + +Initial release of the @mosaic/* monorepo packages. diff --git a/.npmrc b/.npmrc index e43fe44..16e79ba 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ @mosaic:registry=https://git.mosaicstack.dev/api/packages/mosaic/npm +//git.mosaicstack.dev/api/packages/mosaic/npm/:_authToken=${GITEA_NPM_TOKEN} diff --git a/.woodpecker.yml b/.woodpecker.yml index 9872e0a..bbf667a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/packages/queue/package.json b/packages/queue/package.json index d65fc3a..f8299e4 100644 --- a/packages/queue/package.json +++ b/packages/queue/package.json @@ -30,6 +30,7 @@ "node": ">=20.0.0" }, "publishConfig": { + "registry": "https://git.mosaicstack.dev/api/packages/mosaic/npm", "access": "public" }, "dependencies": { diff --git a/packages/types/package.json b/packages/types/package.json index f0338e5..7000e99 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -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" } } diff --git a/plugins/openclaw-context/package.json b/plugins/openclaw-context/package.json index c0ca13f..cce49e7 100644 --- a/plugins/openclaw-context/package.json +++ b/plugins/openclaw-context/package.json @@ -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" - ] -} \ No newline at end of file + ], + "publishConfig": { + "registry": "https://git.mosaicstack.dev/api/packages/mosaic/npm", + "access": "public" + } +}