Repository navigation
chore(release): 9.0.5 #54
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*.*.* | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup Node.js to publish to npmjs.org | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24.x" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install Packages | |
| run: bun install --frozen-lockfile | |
| - name: Build | |
| run: bun run build | |
| env: | |
| CI: true | |
| - name: Test | |
| run: bun run test:ci | |
| env: | |
| CI: true | |
| - name: Generate Release Body | |
| run: npx extract-changelog-release > RELEASE_BODY.md | |
| - name: Publish to NPM | |
| run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Create GitHub Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| bodyFile: "RELEASE_BODY.md" | |
| token: ${{ secrets.GITHUB_TOKEN }} |