File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 66 inputs :
77 version :
88 description : " Build and publish to NPM"
9- required : false
10- default : " v0.17.4-test.1"
9+ required : true
10+ default : " 0.17.4"
11+ tag :
12+ description : " Tag to apply to the release"
13+ required : true
14+ default : " test.1"
1115
1216
1317# We're going to interact with GH from the pipelines, so we need to get some permissions
@@ -44,15 +48,15 @@ jobs:
4448 env :
4549 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4650
47- - name : Set version to ${{ github.event.inputs.version }}
51+ - name : Set version to ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }}
4852 run : |
4953 set -x
50- npm version ${{ github.event.inputs.version }} --no-git-tag-version
54+ npm version ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }} --no-git-tag-version
5155
5256 - name : Build the SDK for release
5357 run : |
5458 npm run build
5559
5660 - name : Publish to NPM - ${{ github.event.inputs.version }}
5761 run : |
58- npm publish
62+ npm publish --tag ${{ github.event.inputs.tag }}
You can’t perform that action at this time.
0 commit comments