diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index d47dc96e..c06d2e56 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -53,7 +53,12 @@ jobs: registry-url: "https://registry.npmjs.org" cache: "yarn" - run: yarn install --immutable - - 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 + # -commit-release : to sort higher than the already released 0.0.0-commit-, + # .0 : format specifier (if the following identifiers will change format, increase this number) + # .%ct : commit timestamp (to sort releases by commit date, not by hash) + # .%h : commit shorthash + - run: echo PKG_VERSION="$(git show --no-patch --format=0.0.0-commit-release.0.%ct.%h)" >> $GITHUB_ENV - name: "@apollo/client-react-streaming: update version" run: |