ci: 👷 Correctly populate NPM token

This commit is contained in:
Jesse Wierzbinski 2025-05-19 14:44:02 +02:00
parent 0fc94cab3b
commit d12bbb2a1b
No known key found for this signature in database

View file

@ -12,6 +12,7 @@ jobs:
# Build job # Build job
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: NPM Deploy
strategy: strategy:
matrix: matrix:
package: ["sdk", "client"] package: ["sdk", "client"]
@ -24,11 +25,14 @@ jobs:
- name: Install - name: Install
run: bun install run: bun install
- name: Configure .npmrc
working-directory: packages/${{ matrix.package }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Publish to NPM - name: Publish to NPM
working-directory: packages/${{ matrix.package }} working-directory: packages/${{ matrix.package }}
run: bun publish --dry-run run: bun publish --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to JSR - name: Publish to JSR
working-directory: packages/${{ matrix.package }} working-directory: packages/${{ matrix.package }}