Skip to content

Commit 08289cd

Browse files
committed
Fix arguments and action
1 parent 7033fa5 commit 08289cd

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish-tag.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ on:
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 }}

0 commit comments

Comments
 (0)