Skip to content

Commit

Permalink
fix: ensure tags are signed (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmandM authored May 15, 2024
1 parent dff230a commit 50fed8b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ jobs:
set -e
if [[ ${{ inputs.prerelease }} ]]; then
echo "creating prerelease version"
# save the value would be created, then remove all changes
current_version=$(npm pkg get version | sed 's/"//g')
if [[ current_version == *${PREID}* ]]; then
echo "creating prerelease version"
echo "first prerelease version"
# if the current version is a prerelease, we can just bump the prerelease number
new_version=$(npm version prerelease)
new_version=$(npm version prerelease --sign-git-tag)
else
echo "subsequent prerelease version"
# if the current version is not a prerelease, we need to add a prerelease number
new_version=$(npm version --preid=${PREID} pre${{ inputs.semver_type }})
new_version=$(npm version --preid=${PREID} pre${{ inputs.semver_type }} --sign-git-tag)
fi
else
echo "creating new release"
Expand Down

0 comments on commit 50fed8b

Please sign in to comment.