1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-12-26 14:47:51 +01:00

fix: update release-it config

Signed-off-by: getlarge <ed@getlarge.eu>
This commit is contained in:
getlarge 2021-03-09 12:20:24 +01:00
parent 736b2adc37
commit 272e6d6ae0
No known key found for this signature in database
GPG Key ID: E4E13243600F9566
2 changed files with 26 additions and 8 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

View File

@ -26,18 +26,13 @@
"clean": "rimraf dist/bundle dist/browser dist/node",
"test": "npm run lint && nyc ava && npm run report-coverage",
"thanks": "cowsay Hi, thanks for your interest in BigchainDB. We appreciate your contribution!",
"release": "release-it --git.tagName='v${version}' --github.release --npm.publish --non-interactive",
"release-minor": "release-it minor --git.tagName='v${version}' --github.release --npm.publish --non-interactive",
"release-major": "release-it major --git.tagName='v${version}' --github.release --npm.publish --non-interactive",
"release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'",
"release-minor": "release-it minor --non-interactive",
"release-major": "release-it major --non-interactive",
"prepublishOnly": "npm run build",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"doc": "documentation build src/index.js -f md -o API.md -g --markdown-toc"
},
"lint-staged": {
"*.js": [
"eslint"
]
},
"devDependencies": {
"@ava/babel": "^1.0.1",
"@babel/cli": "^7.13.0",
@ -54,6 +49,7 @@
"@babel/register": "^7.13.8",
"ava": "^3.15.0",
"babel-loader": "^8.2.2",
"codecov": "^3.8.1",
"cross-env": "^7.0.3",
"documentation": "^13.1.1",
"eslint": "^7.21.0",
@ -97,6 +93,11 @@
"decentralized",
"dapp"
],
"lint-staged": {
"*.js": [
"eslint"
]
},
"ava": {
"files": [
"test/**/*.js",
@ -120,5 +121,21 @@
"hooks": {
"pre-commit": "lint-staged"
}
},
"release-it": {
"github": {
"release": true
},
"git": {
"tagName": "v${version}"
},
"hooks": {
"before:init": [
"npm run test"
]
},
"npm": {
"publish": true
}
}
}