Skip to content

Commit 4783999

Browse files
committed
Output COMMIT_SHA in build directory
Alternative to parsing an arbitrary package's version number, or its `build-info.json`.
1 parent 3b439c1 commit 4783999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ jobs:
191191
at: build2
192192
- run: yarn workspaces info | head -n -1 > workspace_info.txt
193193
- *restore_node_modules
194+
- run: echo "<< pipeline.git.revision >>" >> build2/COMMIT_SHA
194195
# Compress build directory into a single tarball for easy download
195196
- run: tar -zcvf ./build2.tgz ./build2
196197
- store_artifacts:

0 commit comments

Comments
 (0)