From 57c06eebe02a48c0c21159bda8d1eb3d1019c44f Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Thu, 18 Apr 2024 10:56:28 +0200 Subject: [PATCH] update snapshot-release version format --- .github/workflows/snapshot-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: |