Skip to content

Commit

Permalink
ci: 🎡 tweak the workflow for package release
Browse files Browse the repository at this point in the history
  • Loading branch information
brklntmhwk committed Oct 30, 2024
1 parent b02bc7a commit bb070dc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,23 @@ jobs:
- name: Pre-Release Version Upgrade
if: github.event.inputs.release-type == 'prerelease'
run: |
newVersion="$(npm --no-git-tag-version --preid=beta version $RELEASE_TYPE)"
echo "New version: $newVersion"
echo "NEW_VERSION=$newVersion" >> $GITHUB_ENV
{
echo 'NEW_VERSION<<EOF'
npm --no-git-tag-version --preid=beta version $RELEASE_TYPE
echo EOF
} >> "$GITHUB_ENV"
echo "RELEASE_TAG=beta" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ github.event.inputs.release-type }}

- name: Release Version Upgrade
if: github.event.inputs.release-type != 'prerelease'
run: |
newVersion="$(npm --no-git-tag-version version $RELEASE_TYPE)"
echo "New version: $newVersion"
echo "NEW_VERSION=$newVersion" >> $GITHUB_ENV
{
echo 'NEW_VERSION<<EOF'
npm --no-git-tag-version version $RELEASE_TYPE
echo EOF
} >> "$GITHUB_ENV"
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
- name: Changelog Update
Expand Down

0 comments on commit bb070dc

Please sign in to comment.