Skip to content

Commit

Permalink
fix output variable for version
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Dec 19, 2024
1 parent 0c2da16 commit acaa99b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
- name: Bump version
id: bump
if: steps.check_labels.outputs.RELEASE_TYPE != 'no-release'
if: steps.check_labels.outputs.version != 'no-release'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
if [ "${{ steps.check_labels.outputs.RELEASE_TYPE }}" == "alpha" ]; then
if [ "${{ steps.check_labels.outputs.version }}" == "alpha" ]; then
npm version -m "[bot] New pkg version: %s" --preid=alpha prerelease
else
npm version -m "[bot] New pkg version: %s" ${{ steps.check_labels.outputs.RELEASE_TYPE }}
npm version -m "[bot] New pkg version: %s" ${{ steps.check_labels.outputs.version }}
fi
- name: Create GitHub Release
Expand All @@ -57,9 +57,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION=$(node -p "require('./package.json').version")
echo "Would execute command:"
echo "gh release create \"v${VERSION}\" \\"
echo " --title \"Release v${VERSION}\" \\"
echo " --generate-notes \\"
echo " --prerelease \\"
echo " --target \"${COMMIT_SHA}\""
gh release create "v${VERSION}" \
--title "Release v${VERSION}" \
--generate-notes \
--prerelease \
--target "${GITHUB_SHA}"

0 comments on commit acaa99b

Please sign in to comment.