Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

style: use biome for formatting and linting #6

style: use biome for formatting and linting

style: use biome for formatting and linting #6

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- "**"
jobs:
build:
name: "Lint and Build"
runs-on: ubuntu-latest
steps:
- name: Clone the git repository
uses: actions/checkout@main
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Linting
run: bun run lint
- name: Building
run: bun run build
version-bump-changelog-release:
name: Bump Version, Generate Changelog, and Create Release
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Clone the git repository
uses: actions/checkout@main
- name: Conventional changelog action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
preset: "conventionalcommits"
version-file: "./package.json"
- name: Create release
uses: ncipollo/release-action@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}