Skip to content

Commit

Permalink
fix: Use a lifecycle script to create dev versions automatically afte…
Browse files Browse the repository at this point in the history
…r publish
  • Loading branch information
nellh committed May 14, 2021
1 parent aa7782d commit fddfaf3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bids-validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ To run the linter which checks code conventions run `npm run lint`.

### Publishing

Publishing is done with [Lerna](https://github.com/lerna/lerna). Use the command `npm run lernaPublish` and follow instructions to set a new version.
Publishing is done with [Lerna](https://github.com/lerna/lerna). Use the command `npm run lerna publish` and follow instructions to set a new version.

Using lerna publish will create a git commit with updated version information and create a version number tag for it, push the tag to GitHub, then publish to NPM and PyPI. The GitHub release is manual following that.

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"coverage": "./node_modules/.bin/jest --coverage",
"codecov": "./node_modules/.bin/codecov",
"test": "node bids-validator/bin/test-submodule-exists && jest",
"npmPublish": "cd bids-validator && publish",
"lernaPublish": "./node_modules/.bin/lerna publish && ./tools/post_publish.sh",
"postversion": "lerna version prerelease --preid dev --ignore-scripts",
"web-dev": "cd bids-validator-web && npm run dev",
"web-build": "cd bids-validator-web && npm run build",
"web-start": "cd bids-validator-web && npm run build && npm start",
Expand Down
7 changes: 0 additions & 7 deletions tools/post_publish.sh

This file was deleted.

0 comments on commit fddfaf3

Please sign in to comment.