Skip to content

Commit

Permalink
chore: Use biome for linting, fixed some bugs, updated the pipeline (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Mar 16, 2024
1 parent 5e655cd commit 100651c
Show file tree
Hide file tree
Showing 31 changed files with 914 additions and 1,076 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
rebase-strategy: "auto"
schedule:
interval: "weekly"
13 changes: 9 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Build pull request
name: Build

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
- run: npm ci
- run: npm run check
- run: npm run tsc
- run: npm run build
- run: mv dist/index.html remote-bandui.html
- name: Upload Artifacts
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
name: Build and publish
name: Release

on:
push:
branches: ["master"]

workflow_dispatch:
inputs:
version:
type: choice
description: Version update
options:
- patch
- minor
- major
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- id: release
uses: rymndhng/release-on-push-action@v0.27.0
uses: rymndhng/release-on-push-action@v0.28.0
with:
bump_version_scheme: minor
bump_version_scheme: ${{ inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
- run: npm ci
- run: npm run check
- run: npm run tsc
- run: npm run build
- run: mv dist/index.html dist/remote-bandui.html
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.release.outputs.tag_name }}
files: |
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

19 changes: 19 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"noSvgWithoutTitle": "off"
}
}
}
}
15 changes: 0 additions & 15 deletions jsconfig.json

This file was deleted.

0 comments on commit 100651c

Please sign in to comment.