From 0587fb3c00fb9b95eebf95f48b6e78ec15a2116d Mon Sep 17 00:00:00 2001 From: luckyaxl Date: Sat, 9 Dec 2023 18:56:11 +0700 Subject: [PATCH] chore: update workflow --- .github/workflows/publish.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6d12ba..7eb7451 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,17 +38,7 @@ jobs: node-version: "18" registry-url: 'https://registry.npmjs.org' - - name: Publish to npm - if: startsWith(github.ref, 'refs/tags/') - run: | - # Extract the tag version - VERSION=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///') - - # Log in to npm - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc - - # Publish to npm - npm version "$VERSION" --allow-same-version - npm publish + - name: publish + run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}