This commit is contained in:
parent
418cced407
commit
7dc849688f
3 changed files with 96 additions and 2 deletions
27
.gitea/workflows/release.yml
Normal file
27
.gitea/workflows/release.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Release
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
id-token: write
|
||||||
|
steps:
|
||||||
|
- name: Create Release
|
||||||
|
uses: https://git.kjan.de/actions/semantic-release@main
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "project-cli",
|
"name": "proj-cli",
|
||||||
|
"version": "0.0.1",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -15,4 +16,4 @@
|
||||||
"commander": "^14.0.0",
|
"commander": "^14.0.0",
|
||||||
"inquirer": "^12.6.3"
|
"inquirer": "^12.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
66
release.config.cjs
Normal file
66
release.config.cjs
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
module.exports = {
|
||||||
|
branches: ["main"],
|
||||||
|
plugins: [
|
||||||
|
[
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
{
|
||||||
|
preset: "angular",
|
||||||
|
releaseRules: [
|
||||||
|
{ type: "feat", release: "minor" },
|
||||||
|
{ type: "fix", release: "patch" },
|
||||||
|
{ type: "perf", release: "patch" },
|
||||||
|
{ type: "docs", release: "patch" },
|
||||||
|
{ type: "style", release: "patch" },
|
||||||
|
{ type: "refactor", release: "patch" },
|
||||||
|
{ type: "test", release: "patch" },
|
||||||
|
{ type: "chore", release: "patch" },
|
||||||
|
{ type: "ci", release: "patch" },
|
||||||
|
{ type: "build", release: "patch" },
|
||||||
|
{ type: "revert", release: "patch" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
{
|
||||||
|
preset: "conventionalcommits",
|
||||||
|
presetConfig: {
|
||||||
|
types: [
|
||||||
|
{ type: "feat", section: "Features", hidden: false },
|
||||||
|
{ type: "fix", section: "Bug Fixes", hidden: false },
|
||||||
|
{
|
||||||
|
type: "perf",
|
||||||
|
section: "Performance Improvements",
|
||||||
|
hidden: false,
|
||||||
|
},
|
||||||
|
{ type: "docs", section: "Documentation", hidden: false },
|
||||||
|
{ type: "style", section: "Code Style", hidden: false },
|
||||||
|
{ type: "refactor", section: "Code Refactoring", hidden: false },
|
||||||
|
{ type: "test", section: "Tests", hidden: false },
|
||||||
|
{ type: "chore", section: "Chores", hidden: false },
|
||||||
|
{ type: "ci", section: "Continuous Integration", hidden: false },
|
||||||
|
{ type: "build", section: "Build System", hidden: false },
|
||||||
|
{ type: "revert", section: "Reverts", hidden: false },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
parserOpts: {
|
||||||
|
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
{
|
||||||
|
changelogFile: "CHANGELOG.md",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@saithodev/semantic-release-gitea",
|
||||||
|
{
|
||||||
|
giteaUrl: "https://git.kjan.de",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"@semantic-release/npm",
|
||||||
|
"@semantic-release/git",
|
||||||
|
],
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue