Skip to content

Commit 20780ac

Browse files
committed
chore: add release workflow
1 parent fd47da7 commit 20780ac

4 files changed

Lines changed: 2611 additions & 33 deletions

File tree

.release-it.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release v${version}",
4+
"requireBranch": "main",
5+
"tagName": "v${version}"
6+
},
7+
"github": {
8+
"release": true,
9+
"comments": {
10+
"submit": true
11+
}
12+
},
13+
"plugins": {
14+
"@release-it/conventional-changelog": {
15+
"preset": "conventionalcommits",
16+
"infile": "CHANGELOG.md",
17+
"header": "# Changelog"
18+
}
19+
}
20+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
],
2020
"type": "module",
2121
"devDependencies": {
22+
"@release-it/conventional-changelog": "8.0.1",
2223
"@types/react": "^18.2.45",
2324
"react": "18.2.0",
2425
"react-cosmos": "6.0.0-beta.10",
2526
"react-cosmos-ui": "6.0.0-beta.10",
2627
"react-plugin": "3.0.0-alpha.4",
28+
"release-it": "17.0.1",
2729
"styled-components": "6.1.0",
2830
"tsup": "8.0.1",
2931
"typescript": "5.3.3"
@@ -33,8 +35,13 @@
3335
"singleQuote": true,
3436
"trailingComma": "es5"
3537
},
38+
"publishConfig": {
39+
"registry": "https://registry.npmjs.org"
40+
},
3641
"scripts": {
37-
"build": "tsup --config tsup.index.config.ts && tsup --config tsup.fixture.config.ts"
42+
"prepublishOnly": "yarn build",
43+
"build": "tsup --config tsup.index.config.ts && tsup --config tsup.fixture.config.ts",
44+
"release": "release-it"
3845
},
3946
"peerDependencies": {
4047
"react-cosmos": "^6.0.0-beta.10"

0 commit comments

Comments
 (0)