chore: release v3.0.0-beta.12 #8
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 v3 legacy NPM package | |
| on: | |
| push: | |
| tags: | |
| - 'v3*' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| attestations: write | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: 1.3.9 | |
| registries: | | |
| https://registry.npmjs.org/ | |
| - name: Setup node for npm OIDC | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 24.x | |
| - name: bun install | |
| run: bun install --frozen-lockfile | |
| - name: bun build | |
| run: bun run build | |
| working-directory: packages/utils-legacy | |
| - name: bun test | |
| run: bun run test | |
| working-directory: packages/utils-legacy | |
| - name: ensure correct package name | |
| run: bun pm pkg set name="@swrlab/utils" | |
| working-directory: packages/utils-legacy | |
| - name: create tarball | |
| run: bun pm pack --filename swrlab-utils-legacy.tgz | |
| working-directory: packages/utils-legacy | |
| - name: npm publish legacy | |
| run: npm publish --access public --provenance --tag legacy swrlab-utils-legacy.tgz | |
| working-directory: packages/utils-legacy |