Skip to content

Commit a258c27

Browse files
authored
ci: Force publish the same versions using lerna (getsentry#2466)
1 parent fbaabfb commit a258c27

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/craft-pre-release.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
#!/bin/bash
22
set -eux
3+
34
# Move to the project root
45
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
56
cd $SCRIPT_DIR/..
67
OLD_VERSION="${1}"
78
NEW_VERSION="${2}"
9+
810
# Do not tag and commit changes made by "npm version"
911
export npm_config_git_tag_version=false
10-
yarn lerna version --exact --no-git-tag-version --no-push --include-merged-tags -y "${NEW_VERSION}"
12+
13+
# --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.
14+
# --exact - specify updated dependencies in updated packages exactly (with no punctuation), instead of as semver compatible (with a ^).
15+
# --no-git-tag-version - don't commit changes to package.json files and don't tag the release.
16+
# --no-push - don't push committed and tagged changes.
17+
# --include-merged-tags - include tags from merged branches when detecting changed packages.
18+
# --yes - skip all confirmation prompts
19+
yarn lerna version --force-publish --exact --no-git-tag-version --no-push --include-merged-tags -yes "${NEW_VERSION}"

0 commit comments

Comments
 (0)