File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # # check for staged changes in any directory other than "docs"
4+ git diff-index --cached HEAD --exit-code | grep -v " docs" --silent
5+
6+ if [[ " $? " == 0 ]]; then
7+ echo " The release commit only allows staged files from the docs/ directory. Please unstage any other changes."
8+ exit 1
9+ fi
Original file line number Diff line number Diff line change 118118 "fix:eslint" : " npm run check:eslint -- --fix" ,
119119 "prepare" : " node etc/prepare.js" ,
120120 "preview:docs" : " ts-node etc/docs/preview.ts" ,
121- "release" : " standard-version -i HISTORY.md" ,
121+ "release" : " standard-version -a - i HISTORY.md" ,
122122 "test" : " npm run check:lint && npm run test:all" ,
123123 "test:all" : " npm run check:unit && npm run check:test" ,
124124 "update:docs" : " npm run build:docs -- --yes"
You can’t perform that action at this time.
0 commit comments