Skip to content

Commit

Permalink
chore: release setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rock070 committed Sep 22, 2023
1 parent 95b7026 commit a8834cd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
extends: '@antfu',
ignorePatterns: ['**/*.sh'],
rules: {
'eqeqeq': 'off',
'unused-imports/no-unused-imports': 'off',
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ coverage

.DS_STORE

*.tmp
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-noti",
"version": "1.0.0",
"version": "0.0.0",
"description": "",
"author": "",
"license": "ISC",
Expand Down
11 changes: 4 additions & 7 deletions packages/core/.release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
"github": {
"release": true
},
"npm": {
"publish": false
},
"git": {
"push": false,
"commitMessage": "chore: release v${version}",
"requireCleanWorkingDir": false
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md",
"ignoreRecommendedBump": true
}
}
}

6 changes: 6 additions & 0 deletions packages/core/changelogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
npx changelogen >> log.tmp

cat CHANGELOG.md > CHANGELOG-copy.tmp
cat CHANGELOG-copy.tmp > CHANGELOG.md
cat log.tmp >> CHANGELOG.md
rm CHANGELOG-copy.tmp log.tmp
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"scripts": {
"clean": "rimraf dist",
"dev": "vite build -w",
"release": "pnpm build && release-it",
"release:pre": "pnpm build && sh ./changelogen.sh && release-it",
"release": "esno ./script/publish.ts",
"typecheck": "vue-tsc --noEmit",
"build": "vite build"
},
Expand Down

0 comments on commit a8834cd

Please sign in to comment.