Skip to content

Commit 3953d6e

Browse files
devversionkara
authored andcommitted
build: include commit sha in build artifacts (#4505)
Fixes #4502
1 parent aaa09b5 commit 3953d6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/release/publish-build-artifacts.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ cp -r $buildDir/* $repoDir
3737
# Create the build commit and push the changes to the repository.
3838
cd $repoDir
3939

40+
# Update the package.json version to include the current commit SHA.
41+
sed -i "s/$buildVersion/$buildVersion-$commitSha/g" package.json
42+
4043
# Prepare Git for pushing the artifacts to the repository.
4144
git config user.name "$commitAuthorName"
4245
git config user.email "$commitAuthorEmail"

0 commit comments

Comments
 (0)