@asharca/ui 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -5
  2. package/package.json +7 -6
package/README.md CHANGED
@@ -120,15 +120,24 @@ pnpm --dir packages/ui pack
120
120
 
121
121
  ## Release
122
122
 
123
- This package is versioned independently from the ToolPlane application, like
124
- `packages/ai` in the Pi monorepo. To release a new version, update
125
- `packages/ui/package.json`, merge it, and create a matching `ui-vX.Y.Z` tag.
126
- The `publish-ui.yml` workflow builds and publishes that exact version to npm.
123
+ This package is versioned independently from the ToolPlane application. To
124
+ release a new version, update `packages/ui/package.json`, commit and push the
125
+ changes, then tag that release commit. Replace `X.Y.Z` with the package version:
126
+
127
+ ```bash
128
+ git tag ui-vX.Y.Z
129
+ git push origin ui-vX.Y.Z
130
+ ```
131
+
132
+ The `publish-ui.yml` workflow builds and tests the tagged commit, then publishes
133
+ that exact version to npm with provenance. It does not merge branches or trigger
134
+ the ToolPlane application's separate `vX.Y.Z` release workflow. Published npm
135
+ versions are immutable; use a new version and tag for each release.
127
136
 
128
137
  Publishing requires access to the `@asharca` npm scope. Configure npm trusted
129
138
  publishing for `asharca/ToolPlane` and `publish-ui.yml`, allowing direct
130
139
  publishing with `npm publish`. The workflow uses OIDC rather than a long-lived
131
- npm token.
140
+ npm token. No `NPM_TOKEN` or `NODE_AUTH_TOKEN` repository secret is needed.
132
141
 
133
142
  ## License
134
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asharca/ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Reusable ToolPlane components and chat UI for React applications.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -82,6 +82,11 @@
82
82
  },
83
83
  "./styles.css": "./src/styles.css"
84
84
  },
85
+ "scripts": {
86
+ "build": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
87
+ "postbuild": "node --input-type=module -e \"import { readFileSync, writeFileSync } from 'node:fs'; const path = 'dist/index.d.ts'; writeFileSync(path, readFileSync(path, 'utf8').replaceAll('.tsx', '.js').replaceAll('.ts', '.js'))\"",
88
+ "prepack": "pnpm build"
89
+ },
85
90
  "publishConfig": {
86
91
  "access": "public"
87
92
  },
@@ -99,9 +104,5 @@
99
104
  "radix-ui": "1.6.2",
100
105
  "remark-breaks": "^4.0.0",
101
106
  "streamdown": "^2.5.0"
102
- },
103
- "scripts": {
104
- "build": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
105
- "postbuild": "node --input-type=module -e \"import { readFileSync, writeFileSync } from 'node:fs'; const path = 'dist/index.d.ts'; writeFileSync(path, readFileSync(path, 'utf8').replaceAll('.tsx', '.js').replaceAll('.ts', '.js'))\""
106
107
  }
107
- }
108
+ }