File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111 description : ' release tag'
1212 required : false
1313 type : string
14+ tag_suffix :
15+ description : ' tag suffix'
16+ required : false
17+ type : string
1418
1519jobs :
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 : |
You can’t perform that action at this time.
0 commit comments