We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prepare_release.ps1
1 parent cd0bfa0 commit a681d2cCopy full SHA for a681d2c
prepare_release.ps1
@@ -0,0 +1,14 @@
1
+# Calculate the NPM package version, assuming the version change is in a new commit.
2
+git commit --allow-empty -m "Dummy commit" -q
3
+$NpmPackageVersion = (nbgv get-version -f json | ConvertFrom-Json).NpmPackageVersion
4
+git reset --mixed HEAD~ -q
5
+
6
+# Stamp the version into the package.json file and commit.
7
+pushd $PSScriptRoot/src/MessagePack.UnityClient/Assets/Scripts/MessagePack
8
+npm version $NpmPackageVersion --no-git-tag-version --allow-same-version
9
+git add package.json
10
+popd
11
+git commit -m "Stamp unity package version as $NpmPackageVersion"
12
13
+# Tag the release
14
+nbgv tag
0 commit comments