Skip to content

Commit 4d0bf8f

Browse files
committed
use pre-dist-tag to allow github workflow to run automatically
1 parent 37f75b8 commit 4d0bf8f

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ on:
1515
ref:
1616
description: The head branch associated with the pull request.
1717
required: false
18-
git_tag:
19-
type: choice
20-
description: The git tag associated with the release.
21-
required: true
22-
default: 'latest'
23-
options:
24-
- 'latest'
25-
- 'prerelease'
26-
- 'next'
2718

2819
env:
2920
NODE_OPTIONS: --max_old_space_size=16384
@@ -60,6 +51,6 @@ jobs:
6051
NPM_TOKEN: ${{ secrets.UMBRACO_PUBLISH_NPM_TOKEN}}
6152

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build": "lerna run --scope @umbraco-ui/uui-css build && turbo run build",
3434
"build:prod": "npm run clean && npm run build",
3535
"clean": "turbo run clean --parallel",
36-
"lerna:publish": "npm run build:prod && npm whoami && lerna publish from-package --yes",
36+
"lerna:publish": "npm run build:prod && npm whoami && lerna publish from-package --yes --pre-dist-tag prerelease",
3737
"lerna:version": "lerna version --no-push --exact --conventional-commits --include-merged-tags --sync-workspace-lock",
3838
"lerna:version:rc": "npm run lerna:version -- --conventional-prerelease --preid rc",
3939
"lerna:changelog": "npx lerna-changelog",

0 commit comments

Comments
 (0)