name: Publish Package to npmjs on: release: types: [created] jobs: build: runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - name: Setup repo uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: run_install: false # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: node-version: "24.x" cache: "pnpm" registry-url: "https://registry.npmjs.org" - run: pnpm install - run: pnpm build - run: pnpm test - run: pnpm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}