Skip to content

Commit 9153540

Browse files
committed
fix
1 parent ea9ce2d commit 9153540

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release-feature-branch.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ jobs:
345345
run: |
346346
set -euxo pipefail
347347
old_version="$(tar -xOf ./artifacts/package.tgz package/package.json | jq -r .version)"
348-
version="$old_version-$(git rev-parse --short HEAD)"
349-
tag="${{ github.ref_name }}"
348+
sha="$(git rev-parse --short HEAD)"
349+
version="$old_version-$sha"
350+
tag="${{ github.ref_name }}-$sha"
350351
is_published="$(npm view ${{ matrix.package }} versions --json | jq -r '.[] | select(. == "'$version'") | . == "'$version'"')"
351352
if [[ "$is_published" == "true" ]]; then
352353
echo "\`${{ matrix.package }}@$version\` already published, tagging \`$tag\`" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)