From 7fd2c094c34247ded39275bc7fe597353b27ee32 Mon Sep 17 00:00:00 2001 From: Cat Chen Date: Fri, 21 Oct 2022 12:23:01 -0700 Subject: [PATCH] Bumping version number without npm in release Workflow (#280) --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bc94b3..cc1893d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,8 +59,7 @@ jobs: then git diff --name-only $BASE_TAG | xargs -n1 -I {} echo "::notice file={}:: File: {}" - npm version patch - HEAD_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) + HEAD_TAG=$(echo $BASE_TAG | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.) echo "::notice:: Head tag is $HEAD_TAG" echo "::set-output name=head-tag::$HEAD_TAG"