Skip to content

Commit ca735fc

Browse files
committed
support auto-update of package-lock.json
1 parent c342e8e commit ca735fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ git pull origin
127127
if $pkg; then
128128
xsed "s/(\"version\":[[:space:]]*\")(.+)(\")/\1${new:1}\3/g" package.json
129129
git add package.json
130+
if [[ -f package-lock.json ]]; then
131+
npm install
132+
git add package-lock.json
133+
fi
130134
git commit -m "$message"
131135
fi
132136

0 commit comments

Comments
 (0)