Skip to content

Commit

Permalink
fix: update package version when releasing (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekashida authored and byao committed Aug 16, 2018
1 parent 7739e64 commit ea0434d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/release_npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ CMD_UPDATE_VERSION="lerna version ${PACKAGE_VERSION} --yes --exact --force-publi
CMD_PREPARE="yarn prepare"
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} --no-verify-access --no-verify-registry"

# Run
# Update package versions before preparing the dist files
echo $CMD_UPDATE_VERSION;
$CMD_UPDATE_VERSION;

echo $CMD_PREPARE;
$CMD_PREPARE;

# Publish the packages to npm. Note that lerna cleans the working tree after this as of 3.0.4:
# https://github.com/lerna/lerna/blob/3cbeeabcb443d9415bb86c4539652b85cd7b4025/commands/publish/index.js#L354-L363
echo $CMD_PUBLISH_PACKAGES;
$CMD_PUBLISH_PACKAGES;

# Update package version again for later commit during the "commit release" stage
echo $CMD_UPDATE_VERSION;
$CMD_UPDATE_VERSION;

0 comments on commit ea0434d

Please sign in to comment.