Skip to content

Commit 5dfee84

Browse files
fix: update branch triggers for lint and release workflows
1 parent 2cd01b1 commit 5dfee84

File tree

8 files changed

+308
-30
lines changed

8 files changed

+308
-30
lines changed

.cspell.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"dictionaries": ["software-terms", "npm", "fullstack", "redis", "bash", "typescript"],
4+
"files": ["**", ".vscode/**", ".github/**"],
5+
"ignorePaths": ["bun.lock"],
6+
"ignoreRegExpList": ["apiKey='[a-zA-Z0-9-]{32}'"],
7+
"import": [
8+
"@cspell/dict-redis/cspell-ext.json",
9+
"@cspell/dict-bash/cspell-ext.json",
10+
"@cspell/dict-npm/cspell-ext.json"
11+
],
12+
"useGitignore": true,
13+
"version": "0.2",
14+
"words": [
15+
"anirudh",
16+
"sriram",
17+
"techwithanirudh",
18+
"ultracite",
19+
"coolify",
20+
"lefthook",
21+
"coollabs",
22+
"scrollbars",
23+
"laggy",
24+
"userstyle",
25+
"softprops",
26+
"checkmark",
27+
"selectedcontent",
28+
"atrule",
29+
"coolgray"
30+
]
31+
}

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: techwithanirudh
2+
buy_me_a_coffee: techwithanirudh

.github/actions/setup/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Check setup
2+
description: |
3+
This action sets up the Bun environment and installs dependencies for the project.
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Setup bun
9+
uses: oven-sh/setup-bun@v2
10+
11+
- name: Install dependencies
12+
shell: bash
13+
run: bun install --frozen-lockfile

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- dev
8+
9+
jobs:
10+
types:
11+
name: TypeScript
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout branch
15+
uses: actions/checkout@v4
16+
17+
- name: Setup
18+
uses: ./.github/actions/setup
19+
20+
- name: Run type check
21+
run: bun types:check
22+
23+
prettier:
24+
name: Prettier
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout branch
28+
uses: actions/checkout@v4
29+
30+
- name: Setup
31+
uses: ./.github/actions/setup
32+
33+
- name: Run Prettier
34+
run: bun format:check
35+
36+
spelling:
37+
name: Spelling
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout branch
41+
uses: actions/checkout@v4
42+
43+
- name: Setup
44+
uses: ./.github/actions/setup
45+
46+
- name: Run spelling check
47+
run: bun check:spelling

.github/workflows/lint.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
branches:
6-
- main
6+
- dev
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99

@@ -23,10 +23,8 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26-
- uses: oven-sh/setup-bun@v2
27-
28-
- name: Install Dependencies
29-
run: bun install --frozen-lockfile
26+
- name: Setup
27+
uses: ./.github/actions/setup
3028

3129
- name: Build
3230
run: bun run build

bun.lock

Lines changed: 204 additions & 2 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"format": "prettier --write --ignore-unknown --log-level silent .",
2323
"format:check": "prettier --check --ignore-unknown --log-level silent .",
2424
"types:check": "tsc --noEmit --skipLibCheck",
25+
"check:spelling": "cspell -c .cspell.json --no-progress --no-summary --no-must-find-files --unique",
2526
"changeset": "changeset",
2627
"version": "changeset version",
2728
"release": "bun run build && changeset publish"
@@ -30,7 +31,11 @@
3031
"typescript": "^5"
3132
},
3233
"dependencies": {
34+
"@cspell/dict-bash": "^4.2.0",
35+
"@cspell/dict-npm": "^5.2.9",
36+
"@cspell/dict-redis": "^1.0.5",
3337
"@types/semver": "^7.7.0",
38+
"cspell": "^9.1.2",
3439
"semver": "^7.7.2"
3540
},
3641
"devDependencies": {
@@ -49,5 +54,8 @@
4954
"sass": "^1.89.2",
5055
"vite": "^7.0.0",
5156
"vite-plugin-banner": "^0.8.1"
57+
},
58+
"engines": {
59+
"node": ">=22"
5260
}
5361
}

0 commit comments

Comments
 (0)