1
0
mirror of https://github.com/bigchaindb/stylelint-config-bigchaindb.git synced 2024-12-29 08:07:50 +01:00

semi-automatic npm releases

This commit is contained in:
Matthias Kretschmann 2017-05-31 11:04:27 +02:00
parent bd391f5421
commit ad6984b50d
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
2 changed files with 33 additions and 3 deletions

View File

@ -1,13 +1,16 @@
{ {
"name": "stylelint-config-bigchaindb", "name": "stylelint-config-bigchaindb",
"version": "1.0.0", "version": "0.9.0",
"description": "For consistent CSS across BigchainDB, IPDB & ascribe's repos.", "description": "For consistent CSS across BigchainDB, IPDB & ascribe's repos.",
"main": "index.js", "main": "index.js",
"files": [ "files": [
"index.js" "index.js"
], ],
"scripts": { "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": { "repository": {
"type": "git", "type": "git",
@ -26,7 +29,8 @@
"babel-eslint": "^7.2.3", "babel-eslint": "^7.2.3",
"eslint": "^3.19.0", "eslint": "^3.19.0",
"eslint-config-ascribe": "^3.0.1", "eslint-config-ascribe": "^3.0.1",
"eslint-plugin-import": "^2.3.0" "eslint-plugin-import": "^2.3.0",
"release-it": "^2.7.3"
}, },
"peerDependencies": { "peerDependencies": {
"stylelint": "^7.8.0", "stylelint": "^7.8.0",

View File

@ -40,6 +40,32 @@ Or lint in your editor with one of the many editor plugins for [stylelint](https
apm install linter-stylelint 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 ## License
``` ```