From a50344518c7f4d68f21aa718b7b3a5eb19a364f1 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 23 Oct 2022 19:41:38 +0900 Subject: [PATCH] ci: add --tags --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba45a242..9ae4a68c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - CURRENT_TAG=$(git describe --abbrev=0) + CURRENT_TAG=$(git describe --tags --abbrev=0) NEW_VERSION=$(npm_config_yes=true npx semver "${CURRENT_TAG}" --increment ${{ github.event.inputs.semver_type }}) NEW_TAG="v${NEW_VERSION}" RELEASE_TITLE="Release ${NEW_TAG}"