File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ publishPackage() {
60
60
cd ${repoDir}
61
61
62
62
# Update the package.json version to include the current commit SHA.
63
+ # Normally this "sed" call would just replace the version placeholder, but the version in the
64
+ # package.json file is already replaced by the release task of the current package.
63
65
sed -i " s/${buildVersion} /${buildVersion} -${commitSha} /g" package.json
64
66
65
67
# For build artifacts the different Angular packages that refer to the 0.0.0-PLACEHOLDER should
@@ -74,7 +76,7 @@ publishPackage() {
74
76
echo " https://${MATERIAL2_BUILDS_TOKEN} :@github.com" > .git/credentials
75
77
76
78
git add -A
77
- git commit -m " ${commitMessage} "
79
+ git commit --allow-empty - m " ${commitMessage} "
78
80
git tag " ${buildVersion} -${commitSha} "
79
81
git push origin master --tags
80
82
Original file line number Diff line number Diff line change @@ -90,6 +90,6 @@ git config credential.helper "store --file=.git/credentials"
90
90
echo " https://${MATERIAL2_DOCS_CONTENT_TOKEN} :@github.com" > .git/credentials
91
91
92
92
git add -A
93
- git commit -m " $commitMessage "
93
+ git commit --allow-empty - m " $commitMessage "
94
94
git tag " $commitSha "
95
95
git push origin master --tags
You can’t perform that action at this time.
0 commit comments