Skip to content

Commit b285553

Browse files
tag
1 parent 2f1f071 commit b285553

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ jobs:
7373
- name: Generate Tag name
7474
id: generate_tag_name
7575
run: |
76-
if [ ${{ inputs.dev }} == true ]; then
77-
echo "TAG_NAME=$(npm version prerelease --preid=${{ inputs.jsTag }} --no-git-tag-version --allow-same-version)" >> $GITHUB_ENV
76+
if [ "${{ inputs.dev }}" == "true" ]; then
77+
TAG_NAME=$(npm version prerelease --preid=${{ inputs.jsTag }} --no-git-tag-version --allow-same-version)
7878
else
79-
echo "TAG_NAME=$(npm version patch --no-git-tag-version)" >> $GITHUB_ENV
79+
TAG_NAME=$(npm version patch --no-git-tag-version)
8080
fi
81+
8182
echo "Generated TAG_NAME: $TAG_NAME"
8283
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
8384
echo "::set-output name=TAG_NAME::$TAG_NAME"

0 commit comments

Comments
 (0)