ci: move to release-please

This commit is contained in:
Anthony Potdevin 2026-03-24 16:45:18 -06:00
parent c9ee6b4ebe
commit be3c39bbd4
No known key found for this signature in database
GPG key ID: 4403F1DFBE779457
8 changed files with 66 additions and 1806 deletions

View file

@ -1,40 +0,0 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feat'
- 'feature'
- 'enhancement'
- title: '💪 Improvements'
labels:
- 'chore'
- 'refactor'
- 'perf'
- title: '📃 Docs'
label: 'docs'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
## Contributors
$CONTRIBUTORS

View file

@ -1,16 +0,0 @@
name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

20
.github/workflows/release-please.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Release Please
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

View file

@ -0,0 +1,3 @@
{
".": "0.15.5"
}

View file

@ -1,15 +0,0 @@
module.exports = {
types: [
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'chore', section: 'Improvements', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'refactor', section: 'Refactoring', hidden: false },
{ type: 'perf', section: 'Performance', hidden: false },
{ type: 'revert', section: 'Reverts', hidden: false },
{ type: 'docs', section: 'Docs', hidden: false },
{ type: 'style', section: 'Styling', hidden: false },
{ type: 'test', section: 'Tests', hidden: false },
{ type: 'build', section: 'Build', hidden: false },
{ type: 'ci', section: 'CI', hidden: false },
],
};

1743
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -19,9 +19,6 @@
"lint:check": "eslint \"{src,apps,libs,test}/**/*.{ts,tsx}\"",
"lint-staged": "lint-staged",
"prepare": "husky",
"release": "standard-version",
"release:minor": "standard-version --release-as minor",
"release:test": "standard-version --dry-run",
"start": "cross-env NODE_ENV=production nest start",
"start:debug": "nest start --debug --watch",
"start:dev": "concurrently \"nest start --watch\" \"cd src/client && npx vite\"",
@ -170,17 +167,10 @@
"lint-staged": "^16.3.3",
"prettier": "^3.8.1",
"rimraf": "^6.1.3",
"standard-version": "^9.5.0",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.9.3",
"vite": "^7.3.1"
},
"standard-version": {
"skip": {
"commit": true,
"tag": true
}
}
}

View file

@ -0,0 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"include-component-in-tag": false,
"include-v-in-tag": true,
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "chore", "section": "Improvements" },
{ "type": "refactor", "section": "Refactoring" },
{ "type": "perf", "section": "Performance" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Docs" },
{ "type": "style", "section": "Styling" },
{ "type": "test", "section": "Tests" },
{ "type": "build", "section": "Build" },
{ "type": "ci", "section": "CI" }
],
"packages": {
".": {
"component": "thunderhub",
"changelog-path": "CHANGELOG.md"
}
}
}