Skip to content

Commit

Permalink
update snapshot-release version format
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Apr 18, 2024
1 parent f4ac4b3 commit 57c06ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-<hash>,
# .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: |
Expand Down

0 comments on commit 57c06ee

Please sign in to comment.