feat: support API key from file in config (#84) #113
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: | |
| push: | |
| branches: [main] | |
| jobs: | |
| release: | |
| runs-on: arc-tsarr | |
| if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.10 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Generate API clients and types | |
| run: bun run generate && bun run generate:types | |
| - name: Run TypeScript check | |
| run: bun run typecheck | |
| - name: Run linter | |
| run: bun run lint | |
| - name: Run tests | |
| run: bun test | |
| - name: Build project | |
| run: bun run build:js && bun run build:types | |
| - name: Setup Node.js for npm | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24.14.0' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: bunx semantic-release |