blob: d5dc21d6f64184ee49ec4ebf34cbd831b48abeed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Calculate the NPM package version, assuming the version change is in a new commit.
git commit --allow-empty -m "Dummy commit" -q
$NpmPackageVersion = (nbgv get-version -f json | ConvertFrom-Json).NpmPackageVersion
git reset --mixed HEAD~ -q
# Stamp the version into the package.json file and commit.
pushd $PSScriptRoot/src/MessagePack.UnityClient/Assets/Scripts/MessagePack
npm version $NpmPackageVersion --no-git-tag-version --allow-same-version
git add package.json
popd
git commit -m "Stamp unity package version as $NpmPackageVersion"
# Tag the release
nbgv tag
|