Skip to content

Commit 8882aee

Browse files
authored
1 parent 6b64ee2 commit 8882aee

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/package-publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
description: 'release tag'
1212
required: false
1313
type: string
14+
tag_suffix:
15+
description: 'tag suffix'
16+
required: false
17+
type: string
1418

1519
jobs:
1620
publish:
@@ -38,15 +42,19 @@ jobs:
3842
- name: Update version in package.json if npm_tag is provided
3943
if: ${{ github.event.inputs.npm_tag }}
4044
run: |
41-
npm_version="${{ github.event.inputs.version }}-${{ github.event.inputs.npm_tag }}"
45+
if [ -z "${{ github.event.inputs.tag_suffix }}" ]; then
46+
npm_version="${{ github.event.inputs.version }}-${{ github.event.inputs.npm_tag }}"
47+
else
48+
npm_version="${{ github.event.inputs.version }}-${{ github.event.inputs.npm_tag }}-${{ github.event.inputs.tag_suffix }}"
49+
fi
4250
jq --arg npm_version "$npm_version" '.version = $npm_version' package.json > package.json.tmp && mv package.json.tmp package.json
4351
- name: Set environments
4452
run: |
4553
git config --global user.name "sendbird-sdk-deployment"
4654
git config --global user.email "[email protected]"
4755
- name: Install and Build
4856
run: |
49-
yarn install --immutable --immutable-cache
57+
yarn install
5058
yarn build
5159
- name: Publish to npm
5260
run: |

0 commit comments

Comments
 (0)