forked from rrweb-io/rrweb
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(repo): Add craft pre-release script (#27)
- Loading branch information
Showing
1 changed file
with
20 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,20 @@ | ||
#!/bin/bash | ||
set -eux | ||
|
||
# Move to the project root | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
cd $SCRIPT_DIR/.. | ||
OLD_VERSION="${1}" | ||
NEW_VERSION="${2}" | ||
|
||
# Do not tag and commit changes made by "npm version" | ||
export npm_config_git_tag_version=false | ||
|
||
yarn install --frozen-lockfile | ||
# --force-publish - force publish all packages, this will skip the lerna changed check for changed packages and forces a package that didn't have a git diff change to be updated. | ||
# --exact - specify updated dependencies in updated packages exactly (with no punctuation), instead of as semver compatible (with a ^). | ||
# --no-git-tag-version - don't commit changes to package.json files and don't tag the release. | ||
# --no-push - don't push committed and tagged changes. | ||
# --include-merged-tags - include tags from merged branches when detecting changed packages. | ||
# --yes - skip all confirmation prompts | ||
yarn lerna version --force-publish --exact --no-git-tag-version --no-push --include-merged-tags --yes "${NEW_VERSION}" |