Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Setup and install"
description: "Common setup steps for Actions"

runs:
using: composite
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"

- name: Cache Bun dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-

- name: Install dependencies
shell: bash
run: bun install --frozen-lockfile
27 changes: 27 additions & 0 deletions .github/workflows/biome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Biome for linting and formatting

on:
pull_request:
branches: ["*"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
biome:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup
uses: ./.github/setup

- name: Lint
run: bun run lint

- name: Format
run: bun run format
44 changes: 0 additions & 44 deletions .github/workflows/code-checker.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/commitlint.yaml

This file was deleted.

31 changes: 8 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,43 +20,28 @@ jobs:
runs-on: ubuntu-latest
environment:
name: Release
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Disable Husky in CI
run: echo "HUSKY=0" >> $GITHUB_ENV

- name: Install dependencies
run: pnpm install
- name: Setup
uses: ./.github/setup

- name: Build package
run: pnpm run ci
working-directory: packages/server
run: bun run build

- name: Publish package
uses: cycjimmy/semantic-release-action@v4
with:
working_directory: packages/server
semantic_version: latest
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/npm
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

Empty file removed .npmrc
Empty file.
2 changes: 0 additions & 2 deletions .oxlintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .oxlintrc.json

This file was deleted.

46 changes: 26 additions & 20 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": false
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main",
"root": "."
},
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"lineWidth": 120,
"lineEnding": "lf"
"indentWidth": 2,
"includes": ["packages/**/*.ts"]
},
"json": {
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"lineWidth": 120,
"lineEnding": "lf"
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"useImportType": "warn"
},
"suspicious": {
"noUnknownAtRules": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"indentWidth": 2
}
},
"json": {
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"lineWidth": 120,
"lineEnding": "lf"
"indentWidth": 2
}
}
}
Loading