Skip to content

Commit 0141ada

Browse files
Merge pull request #7 from Four-Lights-NL/actions/pre-release-simplify
Simplify pre-release workflow
2 parents 17cebfa + 4ff8105 commit 0141ada

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/prerelease.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ on:
44
inputs:
55
bump_type:
66
description: 'Bump type'
7-
required: true
8-
default: 'patch'
7+
required: false
98
type: choice
109
options:
1110
- patch
1211
- minor
1312
- major
1413
prerelease_type:
1514
description: 'Prerelease'
16-
required: true
17-
default: 'beta'
15+
required: false
1816
type: choice
1917
options:
2018
- beta
@@ -53,7 +51,7 @@ jobs:
5351
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
5452
5553
- name: Run release
56-
run: npm run release -- --ci --increment=pre${{ github.event.inputs.bump_type }} --preReleaseId=${{ github.event.inputs.prerelease_type }} --npm.tag=${{ github.event.inputs.prerelease_type }} --github.preRelease --preReleaseBase=1
54+
run: npm run release -- ${{ github.event.inputs.bump_type }} --ci --preRelease=${{ github.event.inputs.prerelease_type }}
5755
env:
5856
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
5957
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)