Skip to content

Commit ff1c117

Browse files
committed
add git_tag to publish job
1 parent 93adc81 commit ff1c117

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ on:
1111
inputs:
1212
sha:
1313
description: The commit hash referring to the commit to check.
14-
required: true
14+
required: false
1515
ref:
1616
description: The head branch associated with the pull request.
17+
required: false
18+
git_tag:
19+
type: choice
20+
description: The git tag associated with the release.
1721
required: true
22+
default: 'latest'
23+
options:
24+
- 'latest'
25+
- 'prerelease'
26+
- 'next'
1827

1928
env:
2029
NODE_OPTIONS: --max_old_space_size=16384
@@ -51,6 +60,6 @@ jobs:
5160
NPM_TOKEN: ${{ secrets.UMBRACO_PUBLISH_NPM_TOKEN}}
5261

5362
- name: Publish package
54-
run: npm run lerna:publish
63+
run: npm run lerna:publish -- --dist-tag ${{ inputs.git_tag }}
5564
env:
5665
NPM_TOKEN: ${{ secrets.UMBRACO_PUBLISH_NPM_TOKEN}}

0 commit comments

Comments
 (0)