Skip to content

Commit 8781d03

Browse files
tomasciccolaTomás Ciccola
andauthored
chore: semver on release flow (#823)
only allow patch, minor, major. Comment traces of prerelease Co-authored-by: Tomás Ciccola <[email protected]>
1 parent 7e27b5a commit 8781d03

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
semver:
77
description: 'The semver to use'
88
required: true
9-
default: 'prerelease'
9+
default: 'patch'
1010
type: choice
1111
options:
1212
# - auto
13-
# - patch
14-
# - minor
15-
# - major
16-
- prerelease
13+
- patch
14+
- minor
15+
- major
16+
# - prerelease
1717
# - prepatch
1818
# - preminor
1919
# - premajor
@@ -53,10 +53,10 @@ jobs:
5353
sync-semver-tags: true
5454
access: 'public'
5555
# This prefix is added before the prerelease number, e.g. `v3.0.0-alpha.0`
56-
prerelease-prefix: 'alpha'
56+
# prerelease-prefix: 'alpha'
5757
semver: ${{ github.event.inputs.semver }}
5858
# Prereleases are published under the `alpha` npm dist-tag
59-
npm-tag: ${{ startsWith(github.event.inputs.semver, 'pre') && 'alpha' || 'latest' }}
59+
# npm-tag: ${{ startsWith(github.event.inputs.semver, 'pre') && 'alpha' || 'latest' }}
6060
# Don't notify linked issues
6161
notify-linked-issues: false
6262
# optional: set this secret in your repo config for publishing to NPM

0 commit comments

Comments
 (0)