Skip to content

Commit

Permalink
build: fix release semver
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 18, 2023
1 parent 2bc2d3e commit b33e5c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trigger-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
start:
runs-on: ubuntu-latest

environment: release-${{ github.event.inputs.releaseType }}
environment: release-${{ github.event.inputs.releaseType }}-${{ github.event.inputs.semverType }}
steps:
- name: Setup node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -75,11 +75,11 @@ jobs:
- name: Tag beta
if: ${{ github.event.inputs.releaseType == 'beta' }}
run: npm version pre${{ github.event.inputs.releaseType }} --preid=beta
run: npm version pre${{ github.event.inputs.semverType }} --preid=beta

- name: Tag stable
if: ${{ github.event.inputs.releaseType == 'stable' }}
run: npm version ${{ github.event.inputs.releaseType }}
run: npm version ${{ github.event.inputs.semverType }}

- name: Git push
env:
Expand Down

0 comments on commit b33e5c8

Please sign in to comment.