Merge branch 'main' of https://github.com/indianaPoly/clickvoidx #4
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 | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: release-main | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.6 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run lint | |
| run: bun run lint | |
| - name: Run typecheck | |
| run: bun run typecheck | |
| - name: Build package | |
| run: bun run build | |
| - name: Run tests with JUnit output | |
| run: bun run test:ci | |
| - name: Upload JUnit report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: packages-core-junit-release | |
| path: packages/core/reports/junit.xml | |
| if-no-files-found: error | |
| - name: Create version PR or publish to npm | |
| uses: changesets/action@v1 | |
| with: | |
| title: "chore(release): version packages" | |
| commit: "chore(release): version packages" | |
| version: bun run version-packages | |
| publish: bun run release:publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
| NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} |