forked from launchdarkly/node-server-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Richelson
committed
Jul 21, 2017
1 parent
0b5b828
commit 808b935
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# This script updates the version for the ldclient-node SDK | ||
|
||
# It takes exactly one argument: the new version. | ||
# It should be run from the root of this git repo like this: | ||
# ./scripts/release.sh 4.0.9 | ||
|
||
# When done you should commit and push the changes made. | ||
|
||
set -uxe | ||
echo "Starting node-client release." | ||
|
||
VERSION=$1 | ||
npm --version | ||
|
||
# Update version in package.json | ||
# We're intentionally not running 'npm version' because it does a git commit, which interferes | ||
# with other parts of this automated release process. | ||
|
||
# Update version in setup.py | ||
PACKAGE_JSON_TEMP=./package.json.tmp | ||
sed "s/\"version\".*/\"version\": \"${VERSION}\",/g" package.json > ${PACKAGE_JSON_TEMP} | ||
mv ${PACKAGE_JSON_TEMP} package.json | ||
npm publish | ||
|
||
echo "Done with node-client release" |