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:
parent
bd391f5421
commit
ad6984b50d
10
package.json
10
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",
|
||||
|
26
readme.md
26
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
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user