Skip to content

Commit

Permalink
feat: 添加 release 配置文件以支持 monorepo 模式
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 committed Dec 27, 2024
1 parent 98bb38d commit 09d0fa8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ jobs:
with:
# 配置为 monorepo 模式
command: manifest
# 确保使用 manifest 配置文件
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
monorepo-tags: true
# 配置包路径
packages:
packages/puppeteer
packages/puppeteer-core
# 配置发布类型
release-type: node
- name: 检出代码
uses: actions/checkout@v4
# 安装 pnpm
Expand Down
15 changes: 15 additions & 0 deletions .release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"packages": {
"packages/puppeteer": {
"release-type": "node",
"package-name": "@karinjs/puppeteer"
},
"packages/puppeteer-core": {
"release-type": "node",
"package-name": "@karinjs/puppeteer-core"
}
},
"bootstrap-sha": "commit-sha-here",
"release-type": "node",
"include-component-in-tag": true
}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.0.0"
}

0 comments on commit 09d0fa8

Please sign in to comment.