feat(ci): Update release config

This commit is contained in:
2025-10-28 01:25:44 +03:00
parent c7d94c6965
commit dc5c363583
4 changed files with 40 additions and 12 deletions

View File

@@ -1,10 +1,10 @@
name: goreleaser name: Release
on: on:
push: push:
# run only against tags branches:
tags: - dev
- "*" - master
permissions: permissions:
contents: write contents: write
@@ -21,11 +21,13 @@ jobs:
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '^1.25' go-version: '^1.25'
- name: Run GoReleaser - name: Set up Node
uses: goreleaser/goreleaser-action@v6 uses: actions/setup-node@v6
with: with:
distribution: goreleaser node-version: 22.18
version: "~> v2" - name: Release
args: release --clean run: |
yarn install
yarn semantic-release
env: env:
GITEA_TOKEN: ${{ secrets.GORELEASER_TOKEN }} GITEA_TOKEN: ${{ secrets.GORELEASER_TOKEN }}

View File

@@ -4,5 +4,9 @@
"@semantic-release/exec": "^7.1.0", "@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1", "@semantic-release/git": "^10.0.1",
"semantic-release": "25" "semantic-release": "25"
},
"devDependencies": {
"@semantic-release/release-notes-generator": "^14.1.0",
"conventional-changelog-conventionalcommits": "^9.1.0"
} }
} }

View File

@@ -2,10 +2,25 @@
* @type {import('semantic-release').GlobalConfig} * @type {import('semantic-release').GlobalConfig}
*/ */
module.exports = { module.exports = {
branches: ['master', 'change_models'], branches: ['master', { name: 'dev', prerelease: false, channel: 'dev'}],
plugins: [ plugins: [
[
'@semantic-release/commit-analyzer', '@semantic-release/commit-analyzer',
{
"preset": "angular",
"releaseRules": [
{"type": "docs", "scope": "README", "release": "patch"},
{"type": "refactor", "release": "patch"},
{"type": "style", "release": "patch"}
],
}
],
[
'@semantic-release/release-notes-generator', '@semantic-release/release-notes-generator',
{
"preset": "angular",
}
],
'@semantic-release/changelog', '@semantic-release/changelog',
'@semantic-release/git', '@semantic-release/git',
[ [

View File

@@ -936,6 +936,13 @@ conventional-changelog-angular@^8.0.0:
dependencies: dependencies:
compare-func "^2.0.0" compare-func "^2.0.0"
conventional-changelog-conventionalcommits@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-9.1.0.tgz#34e5f35c80c1375a5464df2a8067a1facbb2d858"
integrity sha512-MnbEysR8wWa8dAEvbj5xcBgJKQlX/m0lhS8DsyAAWDHdfs2faDJxTgzRYlRYpXSe7UiKrIIlB4TrBKU9q9DgkA==
dependencies:
compare-func "^2.0.0"
conventional-changelog-writer@^8.0.0: conventional-changelog-writer@^8.0.0:
version "8.2.0" version "8.2.0"
resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-8.2.0.tgz#1b77ef8e45ccc4559e02a23a34d50c15d2051e5a" resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-8.2.0.tgz#1b77ef8e45ccc4559e02a23a34d50c15d2051e5a"