You've already forked matrix-js-sdk
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:
10
release.sh
10
release.sh
@@ -154,7 +154,15 @@ echo "npm version"
|
||||
# only turn off both of these behaviours, so we have to
|
||||
# manually commit the result.
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user