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}}