Skip to content

Commit

Permalink
chore: manifest based release
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Dec 17, 2024
1 parent ce30df0 commit 29a7d7d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
14 changes: 14 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"release-type": "node",
"include-component-in-tag": true,
"separate-pull-requests": true,
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Fixes", "hidden": false },
{ "type": "chore", "section": "Other Changes", "hidden": false }
],
"packages": {
"packages/api": {},
"packages/client": {}
}
}
4 changes: 4 additions & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"packages/api": "1.2.2",
"packages/client": "1.0.8"
}
8 changes: 2 additions & 6 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,8 @@ jobs:
- uses: googleapis/release-please-action@v4
id: tag-release
with:
path: packages/api
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
monorepo-tags: true
package-name: api
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Other Changes","hidden":false}]'
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
- uses: actions/checkout@v2
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
- uses: actions/setup-node@v2
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ jobs:
- uses: googleapis/release-please-action@v4
id: tag-release
with:
path: packages/client
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
monorepo-tags: true
package-name: w3name
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Other Changes","hidden":false}]'
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
- uses: actions/checkout@v2
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
- uses: actions/setup-node@v2
Expand Down

0 comments on commit 29a7d7d

Please sign in to comment.