Skip to content

Commit d370a85

Browse files
committed
feat: semantic release stup
1 parent b750e7a commit d370a85

File tree

4 files changed

+2529
-47
lines changed

4 files changed

+2529
-47
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 1.0.0 (2023-11-29)
2+
3+
4+
### Features
5+
6+
* semantic release stup ([cb8637d](https://github.com/woolimi/wool-components/commit/cb8637dc7eca788e3e16e8dce2eeb53bc102bb90))

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"lint": "eslint './{components,composables}/**/*.{js,ts,vue}' --fix",
3636
"stylelint": "stylelint 'components/**/*.{scss,css,vue}' --fix --max-warnings 0 --custom-syntax postcss-html",
3737
"prepare": "husky install",
38-
"pre-commit": "lint-staged"
38+
"pre-commit": "lint-staged",
39+
"release": "yarn build && yarn semantic-release && npm publish"
3940
},
4041
"dependencies": {
4142
"@floating-ui/dom": "^1.5.3",
@@ -54,6 +55,8 @@
5455
"@formatjs/intl-getcanonicallocales": "^2.3.0",
5556
"@formatjs/intl-locale": "^3.4.3",
5657
"@histoire/plugin-vue": "^0.17.6",
58+
"@semantic-release/changelog": "^6.0.3",
59+
"@semantic-release/git": "^10.0.1",
5760
"@types/lodash-es": "^4.17.12",
5861
"@typescript-eslint/eslint-plugin": "^6.12.0",
5962
"@typescript-eslint/parser": "^6.12.0",
@@ -77,6 +80,7 @@
7780
"prettier-plugin-tailwindcss": "^0.5.7",
7881
"rollup-plugin-typescript2": "^0.36.0",
7982
"sass": "^1.69.5",
83+
"semantic-release": "^22.0.8",
8084
"stylelint": "^15.11.0",
8185
"stylelint-config-clean-order": "^5.2.0",
8286
"stylelint-config-recommended-scss": "^13.1.0",

release.config.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
branches: ['master'], // The branch where semantic-release check your commits
3+
ci: false, // If you run this in
4+
dryRun: false, // for local testing
5+
plugins: [
6+
'@semantic-release/commit-analyzer',
7+
'@semantic-release/release-notes-generator',
8+
[
9+
'@semantic-release/changelog',
10+
{
11+
changelogFile: './CHANGELOG.md',
12+
},
13+
],
14+
[
15+
'@semantic-release/npm',
16+
{
17+
npmPublish: false,
18+
},
19+
],
20+
[
21+
'@semantic-release/git',
22+
{
23+
message:
24+
'chore(release): ${nextRelease.version} [skip ci] [skip-cd]\n\n${nextRelease.notes}',
25+
},
26+
],
27+
],
28+
};

0 commit comments

Comments
 (0)