Skip to content

Commit

Permalink
fix(build): update version before building dist files to publish (#585)
Browse files Browse the repository at this point in the history
* chore: update lerna 2.9.0 => 3.0.4

* fix: use new lerna configuration key

* chore: remove unused lerna version number

* chore: update script to update version before prepare

* `--no-git-tag-version --no-push` in favor of `--skip-git`
* `--force-publish` in favor of `--force-publish=*`
  • Loading branch information
ekashida authored Aug 15, 2018
1 parent 5d31ea8 commit bd5da03
Show file tree
Hide file tree
Showing 4 changed files with 987 additions and 119 deletions.
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"lerna": "2.9.0",
"commands": {
"command": {
"publish": {
"forcePublish": "*"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"glob": "^7.1.2",
"husky": "^1.0.0-rc.4",
"jest": "~23.1.0",
"lerna": "2.9.0",
"lerna": "3.0.4",
"prettier": "~1.10.2",
"semver": "^5.5.0",
"tslint": "~5.9.1",
Expand Down
5 changes: 4 additions & 1 deletion scripts/release_npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ if [[ $version = *"${PACKAGE_VERSION}"* ]]; then
fi

# Command to push the packages
CMD_UPDATE_VERSION="lerna version ${PACKAGE_VERSION} --yes --exact --force-publish --no-git-tag-version --no-push"
CMD_PREPARE="yarn prepare"
CMD_PUBLISH_PACKAGES="lerna publish --exact --force-publish=* --registry https://npm.lwcjs.org --yes --skip-git ${CANARY} --repo-version ${PACKAGE_VERSION} --npm-client npm"
CMD_PUBLISH_PACKAGES="lerna publish --repo-version ${PACKAGE_VERSION} --yes --exact --force-publish --no-git-tag-version --no-push --registry https://npm.lwcjs.org ${CANARY} --npm-client npm"

# Run
echo $CMD_UPDATE_VERSION;
$CMD_UPDATE_VERSION;
echo $CMD_PREPARE;
$CMD_PREPARE;
echo $CMD_PUBLISH_PACKAGES;
Expand Down
Loading

0 comments on commit bd5da03

Please sign in to comment.