Skip to content

Commit

Permalink
chore: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinko committed Nov 17, 2024
1 parent f1c7b40 commit aa826cb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
with:
node-version: 16

- name: Install dependencies
run: npm install
- name: Install pnpm
run: npm install -g pnpm

- name: Install semantic-release
run: pnpm add -D semantic-release @semantic-release/github @semantic-release/git @semantic-release/changelog

- name: Run Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
run: pnpm exec semantic-release
25 changes: 17 additions & 8 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
"branches": ["main"],
"repositoryUrl": "https://github.com/blinko-space/blinko",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
[
"@semantic-release/git",
"@semantic-release/commit-analyzer",
{
"assets": ["CHANGELOG.md", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "chore", "release": false }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"],
"headerPattern": "^(\\w*|\\p{Emoji_Presentation}+)?(feat|fix|chore|docs|style|refactor|perf|test)(?:\\((.*)\\))?: (.*)$",
"headerCorrespondence": ["emoji", "type", "scope", "subject"]
}
}
]
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/git"
]
}

0 comments on commit aa826cb

Please sign in to comment.