mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
13 lines
491 B
Bash
Executable File
13 lines
491 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Bumps the version of a single npm module found in the current working
|
|
# directory. Call bump_version.sh from the path with package.json in it.
|
|
|
|
set -e
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
# RELEASE_VERSION will come from an env variable passed in from the GH action workflow
|
|
node $SCRIPT_DIR/nextVersion.js "$RELEASE_VERSION" `pwd`
|
|
|
|
# Replace the dist package json with the newly trimmed one
|
|
cp -f ./package.json ./dist/package.json
|