diff --git a/package.json b/package.json index 7825a85..6e099c6 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,16 @@ { "name": "stylelint-config-bigchaindb", - "version": "1.0.0", + "version": "0.9.0", "description": "For consistent CSS across BigchainDB, IPDB & ascribe's repos.", "main": "index.js", "files": [ "index.js" ], "scripts": { - "test": "eslint . --ignore-path .gitignore" + "test": "eslint . --ignore-path .gitignore", + "release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive", + "release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive", + "release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive" }, "repository": { "type": "git", @@ -26,7 +29,8 @@ "babel-eslint": "^7.2.3", "eslint": "^3.19.0", "eslint-config-ascribe": "^3.0.1", - "eslint-plugin-import": "^2.3.0" + "eslint-plugin-import": "^2.3.0", + "release-it": "^2.7.3" }, "peerDependencies": { "stylelint": "^7.8.0", diff --git a/readme.md b/readme.md index bc9b277..c5540cf 100644 --- a/readme.md +++ b/readme.md @@ -40,6 +40,32 @@ Or lint in your editor with one of the many editor plugins for [stylelint](https apm install linter-stylelint ``` +## npm releases + +For a new release, execute on the machine where you're logged into your npm account: + +```bash +npm run release +``` + +This should suffice for most updates but be aware this always creates a patch update. Command is powered by [`release-it`](https://github.com/webpro/release-it) package. That's what the command does: + +- create release commit +- create tag for that release commit +- push commit & tag +- create a new release on GitHub +- publish to npm + +If you want to create a minor or major update, use these commands: + +```bash +npm run release-minor +``` + +```bash +npm run release-major +``` + ## License ```