Skip to content

Commit

Permalink
configure CI/CD workflow Build & Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bozzhik committed Jan 31, 2025
1 parent 8b21949 commit 4b045ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build & Lint
on:
push:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'

- run: pnpm install --frozen-lockfile
- run: pnpm run lint && pnpm run build
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"build": "tsc && vite build",
"lint": "tsc",
"fmt": "prettier --write '**/*.{tsx,ts,json,css,scss,md}'",
"zip": "npm run build && node src/zip.js"
"zip": "pnpm run build && node src/zip.js"
},
"dependencies": {
"react": "^18.2.0",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
}
},
"include": ["src"],
"exclude": ["src/manifest.ts"],
"references": [{"path": "./tsconfig.node.json"}]
}

0 comments on commit 4b045ec

Please sign in to comment.