Skip to content

Commit

Permalink
chore: update module
Browse files Browse the repository at this point in the history
use latest node for testing and vite for bundling

BREAKING CHANGE: the build outputs have changed
  • Loading branch information
kevinchappell committed Oct 20, 2024
1 parent 7c7694f commit f02d682
Show file tree
Hide file tree
Showing 12 changed files with 13,344 additions and 7,042 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 23
- name: Install dependencies
env:
CI: true
run: npm install
- name: Build
run: npm run build
36 changes: 36 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 23
- name: Install dependencies
env:
CI: true
run: npm install
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Publish
if: success()
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Deploy - https://draggable.github.io/formeo/
if: success()
env:
GH_PAT: ${{ secrets.GH_TOKEN }}
BUILD_DIR: dist/demo/
uses: maxheld83/[email protected]
17 changes: 17 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: pull_request
name: Pull Request

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 23
- name: Install dependencies
env:
CI: true
run: npm install
- name: Test
run: npm test
38 changes: 38 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": false
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"ignore": [],
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded"
}
},
"json": {
"formatter": {
"indentStyle": "space"
}
}
}
16 changes: 16 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pre-push:
parallel: true
commands:
run-tests:
run: npm test

pre-commit:
parallel: true
commands:
lint:
run: npx lint-staged

commit-msg:
commands:
commitlint:
run: npx commitlint --edit $GIT_PARAMS
Loading

0 comments on commit f02d682

Please sign in to comment.