Skip to content

Commit ab5487a

Browse files
committed
chore: use short sha for versioning
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent 4f2f4da commit ab5487a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767

6868
- name: Publish package
6969
run: |
70-
EA_VERSION="${{ steps.current-version.outputs.base-version }}-ea-${{ github.run_number }}"
70+
SHORT_SHA=$(git rev-parse --short "${{ github.event.workflow_run.head_sha }}")
71+
EA_VERSION="${{ steps.current-version.outputs.base-version }}-ea.${SHORT_SHA}"
7172
# Temporarily update version for publish
7273
npm version "$EA_VERSION" --no-git-tag-version
7374
npm publish --verbose --tag ea --access public --provenance

0 commit comments

Comments
 (0)