Skip to content

Commit

Permalink
Create tags and commits on prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
EmandM committed May 15, 2024
1 parent b0f10a6 commit 157b862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
if [[ current_version == *${PREID}* ]]; then
echo "creating prerelease version"
# if the current version is a prerelease, we can just bump the prerelease number
new_version=$(npm version prerelease --no-commit-hooks --no-git-tag-version)
new_version=$(npm version prerelease)
else
# if the current version is not a prerelease, we need to add a prerelease number
new_version=$(npm version --no-commit-hooks --no-git-tag-version --preid=${PREID} pre${{ inputs.semver_type }})
new_version=$(npm version --preid=${PREID} pre${{ inputs.semver_type }})
fi
else
echo "creating new release"
Expand Down

0 comments on commit 157b862

Please sign in to comment.