Skip to content

Commit d0eac9c

Browse files
committed
Updated github actions.
1 parent a8979cf commit d0eac9c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/manual-publish.workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_call:
55
inputs:
66
tag:
7-
description: 'Tagged version to release on NPM'
8-
default: ''
7+
description: 'Publish as prerelease'
8+
default: false
99
required: false
10-
type: string
10+
type: boolean
1111

1212
jobs:
1313
manual-publish:
@@ -47,8 +47,8 @@ jobs:
4747

4848
- name: Publish package
4949
run: |
50-
if [ "${{ inputs.tag }}" != "" ]; then
51-
npm publish --workspaces --tag $(echo "${{ inputs.tag }}" | sed 's/^v//')
50+
if [ "${{ inputs.next }}" == true ]; then
51+
npm publish --workspaces --tag next
5252
else
5353
npm publish --workspaces
5454
fi

.github/workflows/publish.workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Publish package
4545
run: |
4646
if [[ "${GITHUB_REF#refs/tags/}" =~ "preview" ]]; then
47-
npm publish --workspaces --tag $(echo "${GITHUB_REF#refs/tags/}" | sed 's/^v//')
47+
npm publish --workspaces --tag next
4848
else
4949
npm publish --workspaces
5050
fi

0 commit comments

Comments
 (0)