同步
This commit is contained in:
13
Packages/dev.yarnspinner.unity/.github/update-package-version.sh
vendored
Normal file
13
Packages/dev.yarnspinner.unity/.github/update-package-version.sh
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
#/bin/bash
|
||||
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "This script must be run in the root of the repository."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION=$(.github/get-version.sh $@)
|
||||
|
||||
jq ".version=\"$VERSION\"" package.json > package.json.tmp
|
||||
mv package.json.tmp package.json
|
||||
|
||||
echo "Updated package version to $VERSION"
|
||||
Reference in New Issue
Block a user