Skip to content

Commit f06ea9f

Browse files
committed
chore: configure semantic release
1 parent a13ae29 commit f06ea9f

File tree

4 files changed

+70
-3
lines changed

4 files changed

+70
-3
lines changed

.github/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- master
3+
workflow_dispatch:
64

75
permissions:
86
contents: read # for checkout

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
"devDependencies": {
5757
"@commitlint/cli": "^18.0.0",
5858
"@commitlint/config-conventional": "^18.0.0",
59+
"@semantic-release/git": "^10.0.1",
60+
"@semantic-release/github": "^9.2.5",
5961
"@total-typescript/ts-reset": "^0.5.0",
6062
"@types/chrome": "^0.0.253",
6163
"@types/node": "^20.0.0",

pnpm-lock.yaml

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release.config.cjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* @type {import('semantic-release').GlobalConfig}
3+
*/
4+
module.exports = {
5+
branches: ["main"],
6+
plugins: [
7+
"@semantic-release/commit-analyzer",
8+
"@semantic-release/release-notes-generator",
9+
[
10+
"@semantic-release/github",
11+
{
12+
assets: ["dist/**/*.{js,css}"],
13+
message:
14+
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
15+
},
16+
],
17+
"@semantic-release/github",
18+
],
19+
};

0 commit comments

Comments
 (0)