Skip to content

Merge branch 'main' of https://github.com/indianaPoly/clickvoidx #4

Merge branch 'main' of https://github.com/indianaPoly/clickvoidx

Merge branch 'main' of https://github.com/indianaPoly/clickvoidx #4

Workflow file for this run

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 }}