We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ac4b3 commit 57c06eeCopy full SHA for 57c06ee
.github/workflows/snapshot-release.yml
@@ -53,7 +53,12 @@ jobs:
53
registry-url: "https://registry.npmjs.org"
54
cache: "yarn"
55
- run: yarn install --immutable
56
- - run: echo PKG_VERSION="0.0.0-commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
+ # 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
62
63
- name: "@apollo/client-react-streaming: update version"
64
run: |
0 commit comments