fix: run scripts on npx
This commit is contained in:
parent
302ee1d517
commit
94fee30d2b
@ -1,14 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if ! [ -x "$(command -v standard-version)" ]; then
|
if ! [ -x "$(command -v npx)" ]; then
|
||||||
echo "standard-version is not installed. please run 'npm i -g standard-version'"
|
echo "Node.js is require, exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
standard-version --dry-run --skip
|
npx standard-version --dry-run --skip
|
||||||
read -p "Continue (y/n)? " -n 1 -r
|
read -p "Continue (y/n)? " -n 1 -r
|
||||||
echo ;
|
echo ;
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
standard-version -s ;
|
npx standard-version -s ;
|
||||||
fi
|
fi
|
||||||
@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if ! [ -x "$(command -v commitlint)" ]; then
|
if ! [ -x "$(command -v npx)" ]; then
|
||||||
echo "commitlint is not installed. please run 'npm i -g commitlint'"
|
echo "Node.js is require, exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for commit_hash in $(git log --pretty=format:%H origin/master..HEAD); do
|
for commit_hash in $(git log --pretty=format:%H origin/master..HEAD); do
|
||||||
commitlint -f ${commit_hash}~1 -t ${commit_hash}
|
npx commitlint -f ${commit_hash}~1 -t ${commit_hash}
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user