diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 369fced..eb1add6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,15 +28,12 @@ jobs: node-version: 22.x registry-url: 'https://registry.npmjs.org' cache: 'npm' + - run: npm i -g npm@latest - run: npm ci - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.ref_name }} - run: npm publish --provenance --access public --tag next if: "github.event.release.prerelease" - env: - NODE_AUTH_TOKEN: ${{ secrets.npm_secret }} - run: npm publish --provenance --access public if: "!github.event.release.prerelease" - env: - NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}