⚙️ setup: add Biome linter, CodeQL, Dependabot, and consolidate CI workflows #123
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: Package Build | |
| on: | |
| pull_request: | |
| branches: [main, dev] | |
| push: | |
| branches: [main, dev] | |
| workflow_call: | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: 'Perform dry run without publishing' | |
| type: boolean | |
| default: true | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: read | |
| packages: write | |
| pull-requests: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build workspace packages | |
| run: bun run build:packages | |
| - name: Build & Publish Packages | |
| uses: wgtechlabs/package-build-flow-action@v2.0.1 | |
| with: | |
| monorepo: 'true' | |
| workspace-detection: 'true' | |
| package-manager: 'bun' | |
| dependency-order: 'true' | |
| changed-only: 'false' | |
| registry: 'both' | |
| access: 'public' | |
| npm-token: ${{ secrets.NPM_TOKEN }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| publish-enabled: 'true' | |
| dry-run: ${{ github.event.inputs.dry-run || 'false' }} | |
| build-script: 'build' | |
| audit-enabled: 'true' | |
| audit-level: 'high' | |
| fail-on-audit: 'false' |