Skip to content

Commit

Permalink
chore: upgrade @umijs/tools and do github release and changelog gener…
Browse files Browse the repository at this point in the history
…ate and translation by script
  • Loading branch information
sorrycc committed Jan 16, 2025
1 parent cdc8027 commit e5ef3e2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ Open https://github.com/umijs/mako/actions/workflows/node-bind-build.yml?query=e
$ git rev-parse HEAD
```

If you want to translate the changelog automatically, please setup the GEMINI_API_KEY environment variable. GEMINI_API_KEY could be applied from [here](https://aistudio.google.com/apikey) and then add it to environment variables.

```bash
$ export GEMINI_API_KEY=your-gemini-api-key
```

Then you can release the new version.

```bash
Expand All @@ -192,8 +198,3 @@ $ npm run release
# if you want to input the version manually
$ npm run release -- --bump question
```

After release, you must do 2 things:

- Release the new version on github
- Update the changelog in CHANGELOG.md and CHANGELOG_zh-CN.md
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:umi": "node scripts/test-e2e.mjs --fixtures e2e/fixtures.umi --umi",
"test:hmr": "node scripts/test-hmr.mjs",
"release": "pnpm --filter @umijs/mako release",
"release:rsc": "esno scripts/release-rsc.ts",
"release:rsc": "pnpm --filter @umijs/rsc release",
"release:create-mako": "pnpm --filter create-mako release"
},
"license": "MIT",
Expand All @@ -34,7 +34,7 @@
"@types/semver": "^7.5.0",
"@umijs/bundler-mako": "workspace:*",
"@umijs/mako": "workspace:*",
"@umijs/tools": "^0.1.9",
"@umijs/tools": "^0.1.21",
"antd": "^5.12.2",
"babel-plugin-import": "^1.13.8",
"es-check": "^7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/mako/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"napi:build:debug": "napi build --cargo-cwd ../../crates/binding --platform --js src/binding.js --dts src/binding.d.ts",
"postbuild": "npm run format",
"prepublishOnly": "napi prepublish -t npm",
"release": "utools release --sync-deps ../bundler-mako/package.json,../create-mako/templates/minimal/package.json --sync-versions ../bundler-mako/package.json --sync-publishes ../bundler-mako --git-tag",
"release": "utools release --sync-deps ../bundler-mako/package.json,../create-mako/templates/minimal/package.json --sync-versions ../bundler-mako/package.json --sync-publishes ../bundler-mako --git-tag --changelog",
"src:build": "father build",
"src:dev": "father dev",
"universal": "napi universal",
Expand Down
5 changes: 3 additions & 2 deletions packages/rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"dist"
],
"scripts": {
"format": "biome check --write .",
"dev": "father dev",
"build": "father build",
"dev": "father dev",
"format": "biome check --write .",
"release": "utools release",
"test": "esno ./src/index.test.ts"
},
"repository": "[email protected]:umijs/mako.git"
Expand Down

0 comments on commit e5ef3e2

Please sign in to comment.