build: replace cdk version placeholder for build artifacts (#5330)

* Currently the `0.0.0-PLACEHOLDER` is still inside of the `package.json` of the material2-builds. Similar as for every other Angular package the version placeholder should be replaced with the version of the current "build commit".

Closes #5320
This commit is contained in:
Paul Gschwendtner
2017-06-23 21:40:37 +02:00
committed by Jeremy Elbourn
parent 7beb08b820
commit 84746718fd
@@ -55,6 +55,10 @@ publishPackage() {
# Update the package.json version to include the current commit SHA.
sed -i "s/${buildVersion}/${buildVersion}-${commitSha}/g" package.json
# For build artifacts the different Angular packages that refer to the 0.0.0-PLACEHOLDER should
# be replaced with the Github builds that are published at the same time.
sed -i "s/0.0.0-PLACEHOLDER/${buildVersion}-${commitSha}/g" package.json
# Prepare Git for pushing the artifacts to the repository.
git config user.name "${commitAuthorName}"
git config user.email "${commitAuthorEmail}"