Skip to content

Commit 94790a4

Browse files
committed
feat: release setup
1 parent b750e7a commit 94790a4

File tree

5 files changed

+2554
-47
lines changed

5 files changed

+2554
-47
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 1.0.0 (2023-11-29)
2+
3+
4+
### Bug Fixes
5+
6+
* release config ([1ed3e2a](https://github.com/woolimi/wool-components/commit/1ed3e2aae19f3c486b16ea3e3095f44c2f7a4bd4))
7+
8+
9+
### Features
10+
11+
* semantic release stup ([d370a85](https://github.com/woolimi/wool-components/commit/d370a8522f5cfc00da88245ba57f0f4ba963a884))
12+
13+
# 1.0.0 (2023-11-29)
14+
15+
16+
### Features
17+
18+
* semantic release stup ([d370a85](https://github.com/woolimi/wool-components/commit/d370a8522f5cfc00da88245ba57f0f4ba963a884))
19+
20+
# 1.0.0 (2023-11-29)
21+
22+
23+
### Features
24+
25+
* semantic release stup ([cb8637d](https://github.com/woolimi/wool-components/commit/cb8637dc7eca788e3e16e8dce2eeb53bc102bb90))

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
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+
"delete-tag": "bash ./scripts/delete-tag.sh",
40+
"release": "yarn build && yarn semantic-release",
41+
"this": "npm view wool-components versions"
3942
},
4043
"dependencies": {
4144
"@floating-ui/dom": "^1.5.3",
@@ -54,6 +57,8 @@
5457
"@formatjs/intl-getcanonicallocales": "^2.3.0",
5558
"@formatjs/intl-locale": "^3.4.3",
5659
"@histoire/plugin-vue": "^0.17.6",
60+
"@semantic-release/changelog": "^6.0.3",
61+
"@semantic-release/git": "^10.0.1",
5762
"@types/lodash-es": "^4.17.12",
5863
"@typescript-eslint/eslint-plugin": "^6.12.0",
5964
"@typescript-eslint/parser": "^6.12.0",
@@ -77,6 +82,7 @@
7782
"prettier-plugin-tailwindcss": "^0.5.7",
7883
"rollup-plugin-typescript2": "^0.36.0",
7984
"sass": "^1.69.5",
85+
"semantic-release": "^22.0.8",
8086
"stylelint": "^15.11.0",
8187
"stylelint-config-clean-order": "^5.2.0",
8288
"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: true,
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+
};

scripts/delete-tag.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
git tag -d $1
4+
git push origin --delete $1

0 commit comments

Comments
 (0)