Skip to content

Commit 57c06ee

Browse files
committed
update snapshot-release version format
1 parent f4ac4b3 commit 57c06ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/snapshot-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ jobs:
5353
registry-url: "https://registry.npmjs.org"
5454
cache: "yarn"
5555
- run: yarn install --immutable
56-
- run: echo PKG_VERSION="0.0.0-commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
56+
# 0.0.0 : to sort lower than any other release
57+
# -commit-release : to sort higher than the already released 0.0.0-commit-<hash>,
58+
# .0 : format specifier (if the following identifiers will change format, increase this number)
59+
# .%ct : commit timestamp (to sort releases by commit date, not by hash)
60+
# .%h : commit shorthash
61+
- run: echo PKG_VERSION="$(git show --no-patch --format=0.0.0-commit-release.0.%ct.%h)" >> $GITHUB_ENV
5762

5863
- name: "@apollo/client-react-streaming: update version"
5964
run: |

0 commit comments

Comments
 (0)