Skip to content

Commit 1c7754a

Browse files
devversionkara
authored andcommitted
build: artifact scripts should push empty commits (#5835)
1 parent e2d61c7 commit 1c7754a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/deploy/publish-build-artifacts.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ publishPackage() {
6060
cd ${repoDir}
6161

6262
# 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.
6365
sed -i "s/${buildVersion}/${buildVersion}-${commitSha}/g" package.json
6466

6567
# For build artifacts the different Angular packages that refer to the 0.0.0-PLACEHOLDER should
@@ -74,7 +76,7 @@ publishPackage() {
7476
echo "https://${MATERIAL2_BUILDS_TOKEN}:@github.com" > .git/credentials
7577

7678
git add -A
77-
git commit -m "${commitMessage}"
79+
git commit --allow-empty -m "${commitMessage}"
7880
git tag "${buildVersion}-${commitSha}"
7981
git push origin master --tags
8082

scripts/deploy/publish-docs-content.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ git config credential.helper "store --file=.git/credentials"
9090
echo "https://${MATERIAL2_DOCS_CONTENT_TOKEN}:@github.com" > .git/credentials
9191

9292
git add -A
93-
git commit -m "$commitMessage"
93+
git commit --allow-empty -m "$commitMessage"
9494
git tag "$commitSha"
9595
git push origin master --tags

0 commit comments

Comments
 (0)