1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Release script: commit package-lock.json

Commit the package-lock.json when bumping the version, otherwise
the versions get out of sync, and this is going to matter more now
that jenkins runs `npm ci` which is fussy about these things.
This commit is contained in:
David Baker
2019-02-13 13:40:46 +00:00
parent 4309749979
commit 68c8fe0fa9

View File

@@ -154,7 +154,15 @@ echo "npm version"
# only turn off both of these behaviours, so we have to # only turn off both of these behaviours, so we have to
# manually commit the result. # manually commit the result.
npm version --no-git-tag-version "$release" npm version --no-git-tag-version "$release"
git commit package.json -m "$tag"
# commit package-lock.json if it exists and is versioned
if [[ -f package-lock.json && -z `git st --porcelain --ignored package-lock.json` ]];
then
pkglock='package-lock.json'
else
pkglock=''
fi
git commit package.json $pkglock -m "$tag"
# figure out if we should be signing this release # figure out if we should be signing this release