Skip to content

Commit

Permalink
Update prepare-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-grana committed Nov 29, 2023
1 parent 69ebb46 commit 1c45f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
## MINOR
- name: bumping minor version in package.json
if: ${{ steps.parameters.outputs.isMinor == true }}
if: ${{ steps.parameters.outputs.isHotfix == false }}
run: |
version=$(echo "${{ steps.project.outputs.version }}" | sed 's/-SNAPSHOT-[0-9]//')
npm version $version --no-git-tag-version
Expand All @@ -76,7 +76,7 @@ jobs:
echo "RELEASE_VERSION=$(node -pe "require('./package.json')['version']")" >> $GITHUB_ENV
- name: Create release branch
if: ${{ steps.parameters.outputs.isMinor == true }}
if: ${{ steps.parameters.outputs.isHotfix == false }}
run: |
version=${{ env.RELEASE_VERSION }}
git checkout -b release/$version
Expand Down

0 comments on commit 1c45f95

Please sign in to comment.