File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
inputs :
6
6
tag :
7
- description : ' Tagged version to release on NPM '
8
- default : ' '
7
+ description : ' Publish as prerelease '
8
+ default : false
9
9
required : false
10
- type : string
10
+ type : boolean
11
11
12
12
jobs :
13
13
manual-publish :
47
47
48
48
- name : Publish package
49
49
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
52
52
else
53
53
npm publish --workspaces
54
54
fi
Original file line number Diff line number Diff line change 44
44
- name : Publish package
45
45
run : |
46
46
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
48
48
else
49
49
npm publish --workspaces
50
50
fi
You can’t perform that action at this time.
0 commit comments