chore: release v4.0.0-beta.1 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release NPM package | |
| on: | |
| push: | |
| tags: | |
| - 'v4*' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| attestations: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | |
| with: | |
| bun-version: 1.3.4 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Setup node for npm OIDC | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.0.1 | |
| with: | |
| node-version: 24.x | |
| - name: bun install | |
| run: bun install --frozen-lockfile | |
| working-directory: packages/utils | |
| - name: bun build | |
| run: bun run build | |
| working-directory: packages/utils | |
| - name: bun test | |
| run: bun run test | |
| working-directory: packages/utils | |
| - name: create tarball | |
| run: bun pm pack | |
| working-directory: packages/utils | |
| - name: npm publish beta | |
| run: npm publish --access public --provenance --tag beta *.tgz | |
| working-directory: packages/utils |