bump: 1.0.5-beta.1 #15
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: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| id-token: write | |
| concurrency: | |
| group: publish-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| publish: | |
| name: Release + npm publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4.2.0 | |
| with: | |
| version: 10.13.1 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: pnpm | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Biome check | |
| run: pnpm check | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Tests (CI) | |
| run: pnpm test | |
| - name: Build | |
| run: pnpm build | |
| - name: Publish to npm (Trusted Publishing) | |
| shell: bash | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| if [[ "$VERSION" == *-* ]]; then | |
| PRERELEASE_TAG=$(node -p "require('./package.json').version.split('-')[1].split('.')[0]") | |
| npm publish --tag "$PRERELEASE_TAG" | |
| else | |
| npm publish | |
| fi | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2.5.0 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| body_path: RELEASE.md |