mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-01 01:50:00 -07:00
global: snapshot
This commit is contained in:
19
scripts/js-publish.sh
Executable file
19
scripts/js-publish.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
ROOT_DIR="$SCRIPT_DIR/.."
|
||||
|
||||
VERSION="$1"
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$ROOT_DIR/modules/brk-client"
|
||||
|
||||
# Update version in package.json
|
||||
sed -i '' 's/"version": "[^"]*"/"version": "'"$VERSION"'"/' package.json
|
||||
echo "Updated package.json to $VERSION"
|
||||
|
||||
npm publish --access public
|
||||
Reference in New Issue
Block a user