From f14fed80504e8efb36b9cef2c3b575df27fb0bc3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Wed, 23 Aug 2023 12:08:01 +0800 Subject: [PATCH] ci: fix publish action to fullfill github tags requirement --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a3b06a8..d45f6dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: publish on: push: tags: - - "*" + - "v*" jobs: publish: @@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: npm ci - - run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false + - run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\/v//') --git-tag-version false - run: cat package.json env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}