diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d21e95e..76e93d8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,10 +23,15 @@ jobs: uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 - name: Set up Node for npm publish - uses: actions/setup-node@499817a2b6e7a2fbd6490d5d6b1c9634a3c6613 # v4.4.0 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 (sdk-node publish) with: node-version: '22' registry-url: 'https://registry.npmjs.org' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Verify npm auth + run: npm whoami - name: Install dependencies run: bun install --frozen-lockfile @@ -48,8 +53,6 @@ jobs: else npm publish --access public fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish react working-directory: packages/react @@ -62,5 +65,3 @@ jobs: else npm publish --access public fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}