Skip to content

Commit ee133f0

Browse files
committed
feat: 发布版本1.10.6,配置GitHub Action以在合并到main分支时自动发布到npm,并更新CHANGELOG
1 parent 0fb751b commit ee133f0

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/workflows/npm-publish.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v2
17+
with:
18+
version: latest # 使用最新版pnpm
1619
- uses: actions/setup-node@v4
1720
with:
18-
node-version: 20
21+
node-version: 22
1922
registry-url: https://registry.npmjs.org/
20-
- run: npm ci
21-
- run: npm run build # 编译ts为js
23+
- run: pnpm install --frozen-lockfile # 类似npm ci,严格遵循lockfile
24+
- run: pnpm run build # 编译ts为js
2225
- run: npm publish
2326
env:
2427
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 更新日志
22

3+
## [1.10.6] - 2025-10-09
4+
5+
- 配置github action,在合并到main分支时发布到npm
6+
37
## [1.10.5] - 2025-10-09
48

59
- 修复npm包中`minecrafthawkeye`插件动态导入失败导致事件系统无法正常工作的问题

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maicraft",
3-
"version": "1.10.5",
3+
"version": "1.10.6",
44
"description": "基于mineflayer构建的 Minecraft MCP Server,主要用于MaiBot直播Minecraft",
55
"type": "module",
66
"main": "dist/main.js",

0 commit comments

Comments
 (0)