feat: initial public release #21
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 Dry Run | ||
|
Check failure on line 1 in .github/workflows/release-dry-run.yml
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: write | ||
| concurrency: | ||
| group: release-dry-run-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| dry-run: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24.x | ||
| cache: npm | ||
| registry-url: https://registry.npmjs.org | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Lint | ||
| run: npm run lint | ||
| - name: Format check | ||
| run: npm run format:check | ||
| - name: Typecheck | ||
| run: npm run typecheck | ||
| - name: Test | ||
| run: npm run test | ||
| - name: Build package | ||
| run: npm run build | ||
| - name: Validate package contents | ||
| run: npm pack --dry-run | ||
| - name: Validate semantic-release dry-run | ||
| if: ${{ secrets.NPM_TOKEN != '' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: npx semantic-release --dry-run --no-ci | ||