Skip to content

Commit 4226096

Browse files
committed
release-it config
1 parent 192ed74 commit 4226096

File tree

5 files changed

+35
-2
lines changed

5 files changed

+35
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
.nfs*
2929
.node_repl_history
3030
.npm
31-
.npmrc
3231
.nuxt
3332
.nyc_output
3433
.rpt2_cache/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=$NPM_TOKEN

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dev": "rollup -c --watch",
1616
"build": "bili src/index.js; yarn todo",
1717
"todo": "leasot -x --reporter markdown 'src/**/*' > TODO.md",
18-
"release": "release-it"
18+
"release": "eval envkey-source | source; release-it"
1919
},
2020
"files": [
2121
"dist/*",
@@ -39,6 +39,7 @@
3939
"devDependencies": {
4040
"@babel/core": "^7.10.3",
4141
"@babel/preset-env": "^7.10.3",
42+
"@release-it/keep-a-changelog": "^1.1.1",
4243
"@vue/compiler-sfc": "^3.0.0-beta.15",
4344
"@vue/eslint-config-prettier": "^6.0.0",
4445
"babel-eslint": "^10.1.0",

release-it.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"git": {
3+
"commitMessage": "🚀 Release v${version}",
4+
"requireBranch": "master"
5+
},
6+
"github": {
7+
"release": true,
8+
"assets": ["dist/*.js"]
9+
},
10+
"gitlab": {
11+
"release": true,
12+
"assets": ["dist/*.js"]
13+
},
14+
"plugins": {
15+
"@release-it/keep-a-changelog": {
16+
"filename": "CHANGELOG.md"
17+
}
18+
}
19+
}

yarn.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,14 @@
970970
dependencies:
971971
"@types/node" ">= 8"
972972

973+
"@release-it/keep-a-changelog@^1.1.1":
974+
version "1.1.1"
975+
resolved "https://registry.yarnpkg.com/@release-it/keep-a-changelog/-/keep-a-changelog-1.1.1.tgz#ea3dcc8d063d9f644eb84f82e06955fa2fa8a02c"
976+
integrity sha512-qV8tsFenGeQDK8FkEufuNmwuCNjHmRC6JwXH/5PRtf+3oUYR3pxypMT3xuEff5jMA6Qtchy5ARWJFRxZvNoLrA==
977+
dependencies:
978+
detect-newline "^3.1.0"
979+
release-it "^13.6.3"
980+
973981
"@rollup/plugin-replace@^2.3.2":
974982
version "2.3.3"
975983
resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.3.tgz#cd6bae39444de119f5d905322b91ebd4078562e7"
@@ -2915,6 +2923,11 @@ detect-indent@^4.0.0:
29152923
dependencies:
29162924
repeating "^2.0.0"
29172925

2926+
detect-newline@^3.1.0:
2927+
version "3.1.0"
2928+
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
2929+
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
2930+
29182931
29192932
version "1.0.1"
29202933
resolved "https://registry.yarnpkg.com/detect-repo-changelog/-/detect-repo-changelog-1.0.1.tgz#c2108cbbf0964da7bc074645b6ad1d3b80a6bd6d"

0 commit comments

Comments
 (0)