Skip to content

Commit 100651c

Browse files
authored
chore: Use biome for linting, fixed some bugs, updated the pipeline (#7)
1 parent 5e655cd commit 100651c

31 files changed

+914
-1076
lines changed

.github/dependabot.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
rebase-strategy: "auto"
6+
schedule:
7+
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
name: Build pull request
1+
name: Build
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58

69
jobs:
710
build:
811
runs-on: ubuntu-latest
912
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
1215
with:
13-
node-version: 18
16+
node-version: 20
1417
cache: "npm"
1518
- run: npm ci
19+
- run: npm run check
20+
- run: npm run tsc
1621
- run: npm run build
1722
- run: mv dist/index.html remote-bandui.html
1823
- name: Upload Artifacts

.github/workflows/release.yaml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
1-
name: Build and publish
1+
name: Release
22

33
on:
4-
push:
5-
branches: ["master"]
6-
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
type: choice
8+
description: Version update
9+
options:
10+
- patch
11+
- minor
12+
- major
713
jobs:
814
build-and-publish:
915
runs-on: ubuntu-latest
1016
steps:
1117
- id: release
12-
uses: rymndhng/release-on-push-action@v0.27.0
18+
uses: rymndhng/release-on-push-action@v0.28.0
1319
with:
14-
bump_version_scheme: minor
20+
bump_version_scheme: ${{ inputs.version }}
1521
env:
1622
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
1925
with:
20-
node-version: 18
26+
node-version: 20
2127
cache: "npm"
2228
- run: npm ci
29+
- run: npm run check
30+
- run: npm run tsc
2331
- run: npm run build
2432
- run: mv dist/index.html dist/remote-bandui.html
2533
- name: Release
26-
uses: softprops/action-gh-release@v1
34+
uses: softprops/action-gh-release@v2
2735
with:
2836
tag_name: ${{ steps.release.outputs.tag_name }}
2937
files: |

.prettierignore

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

.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

biome.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"indentWidth": 2,
9+
"indentStyle": "space"
10+
},
11+
"linter": {
12+
"enabled": true,
13+
"rules": {
14+
"a11y": {
15+
"noSvgWithoutTitle": "off"
16+
}
17+
}
18+
}
19+
}

jsconfig.json

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

0 commit comments

Comments
 (0)