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 cb46b79 commit e7570f3Copy full SHA for e7570f3
.github/workflows/release-feature-branch.yaml
@@ -344,8 +344,10 @@ jobs:
344
shell: bash
345
run: |
346
set -euxo pipefail
347
- version="$(tar -xOf ./artifacts/package.tgz package/package.json | jq -r .version)"
348
- tag="${GITHUB_REF_NAME}"
+ old_version="$(jq -r .version package.json)"
+ version="$old_version-$(git rev-parse --short HEAD)"
349
+ npm version $version
350
+ tag="${{ github.ref_name }}"
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