diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 914db717cd..38c4a55c19 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -205,6 +205,7 @@ jobs: with: node-version: '24.10.0' registry-url: 'https://registry.npmjs.org' + always-auth: true - name: Setup pnpm uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4 @@ -298,6 +299,14 @@ jobs: } >> "$GITHUB_STEP_SUMMARY" fi + - name: Configure npm authentication + if: inputs.dry-run != true && github.ref == 'refs/heads/main' + run: | + cd ui + echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - name: Publish to npm if: inputs.dry-run != true && github.ref == 'refs/heads/main' run: |