We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea9ce2d commit 9153540Copy full SHA for 9153540
.github/workflows/release-feature-branch.yaml
@@ -345,8 +345,9 @@ jobs:
345
run: |
346
set -euxo pipefail
347
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 }}"
+ sha="$(git rev-parse --short HEAD)"
+ version="$old_version-$sha"
350
+ tag="${{ github.ref_name }}-$sha"
351
is_published="$(npm view ${{ matrix.package }} versions --json | jq -r '.[] | select(. == "'$version'") | . == "'$version'"')"
352
if [[ "$is_published" == "true" ]]; then
353
echo "\`${{ matrix.package }}@$version\` already published, tagging \`$tag\`" >> $GITHUB_STEP_SUMMARY
0 commit comments