This repository was archived by the owner on Feb 23, 2025. It is now read-only.
⚡ Release #11
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 | |
| on: | |
| workflow_run: | |
| workflows: ['⚡ Integration checks'] | |
| branches: [main] | |
| types: | |
| - completed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| publish: | |
| name: 🛩️ Release & Publish | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: 🛰️ Release please | |
| uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| config-file: release-please/config.json | |
| manifest-file: release-please/manifest.json | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - name: 📦 Setup bun | |
| uses: oven-sh/setup-bun@v2 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| with: | |
| node-version-file: '.node-version' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: 📥 Install deps | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: bun install --frozen-lockfile | |
| - name: ⚙️ Building package | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: bun run build | |
| - name: 🚀 Publish package | |
| id: publish | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: npm publish ./dist --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |