dsh-cheso-design 0.1.0 → 0.1.1-rc.0

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 (3) hide show
  1. package/README.md +11 -0
  2. package/README.zh.md +11 -0
  3. package/package.json +4 -5
package/README.md CHANGED
@@ -94,6 +94,17 @@ npm run release -- stable 0.1.1
94
94
 
95
95
  Use `--dry-run` to preview either channel. The script type-checks, builds, runs tests, and writes the requested version to `package.json` in a temporary staging directory.
96
96
 
97
+ ### GitHub Actions
98
+
99
+ After merging [the publish workflow](.github/workflows/publish.yml), open the npm package settings and add a [GitHub Actions trusted publisher](https://docs.npmjs.com/trusted-publishers/#configuring-trusted-publishing). Enter `cheso-ai-platform` as the organization, `dsh-cheso-design` as the repository, and `publish.yml` as the workflow filename. Leave Environment blank and allow `npm publish`.
100
+
101
+ Push a tag for an unused npm version on the commit you want to release. A prerelease tag such as `v0.1.1-rc.0` publishes to `next`. A stable tag such as `v0.1.1` publishes to `latest`.
102
+
103
+ ```sh
104
+ git tag v0.1.1-rc.0
105
+ git push origin v0.1.1-rc.0
106
+ ```
107
+
97
108
  ## License
98
109
 
99
110
  MIT — see [LICENSE](LICENSE).
package/README.zh.md CHANGED
@@ -94,6 +94,17 @@ npm run release -- stable 0.1.1
94
94
 
95
95
  两个渠道均可用 `--dry-run` 预览。脚本会执行类型检查、构建和测试,并将指定版本写入临时打包目录中的 `package.json`。
96
96
 
97
+ ### GitHub Actions 自动发布
98
+
99
+ 合并[发布工作流](.github/workflows/publish.yml)后,在 npm 包的设置里添加 [GitHub Actions Trusted Publisher](https://docs.npmjs.com/trusted-publishers/#configuring-trusted-publishing)。组织填 `cheso-ai-platform`,仓库填 `dsh-cheso-design`,工作流文件名填 `publish.yml`。Environment 留空,勾选允许 `npm publish`。
100
+
101
+ 在要发布的提交上打 tag,再推送到 GitHub。版本号须在 npm 上尚未使用。`v0.1.1-rc.0` 这类预发布 tag 会发布到 `next`,`v0.1.1` 这类正式 tag 会发布到 `latest`。
102
+
103
+ ```sh
104
+ git tag v0.1.1-rc.0
105
+ git push origin v0.1.1-rc.0
106
+ ```
107
+
97
108
  ## 许可证
98
109
 
99
110
  MIT,见 [LICENSE](LICENSE)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cheso-design",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-rc.0",
4
4
  "description": "Turn your ideas, files, and research into stunning presentations, posters, videos, and more. Create, edit, and share with Cheso",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -50,14 +50,13 @@
50
50
  "release": "node scripts/release.mjs",
51
51
  "prepublishOnly": "npm run build"
52
52
  },
53
- "dependencies": {
54
- "@deepseek-ai/schemastery": "^3.19.0"
55
- },
56
53
  "peerDependencies": {
57
- "@deepseek-ai/dsh-tools": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0-0"
54
+ "@deepseek-ai/dsh-tools": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0-0",
55
+ "@deepseek-ai/schemastery": "^3.19.0"
58
56
  },
59
57
  "devDependencies": {
60
58
  "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
59
+ "@deepseek-ai/schemastery": "^3.19.0",
61
60
  "@types/node": "^22.10.2",
62
61
  "@types/react": "^18.3.18",
63
62
  "esbuild": "^0.24.2",