1
0
Fork 0

fix(ci): Add lint step
build (current) Details

This commit is contained in:
Sam Therapy 2023-03-30 15:30:00 +02:00
parent deca58fb4c
commit 98b59feb92
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: pnpm Example Workflow
name: Build
on:
- push
- pull_request
@ -12,6 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
@ -19,5 +21,7 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint:ci
- name: Build
run: pnpm build

View File

@ -12,6 +12,7 @@
"build": "tsc -b",
"clean": "tsc -b --clean",
"lint": "eslint --ext .ts ./src --fix && prettier --write ./src",
"lint:ci": "eslint --ext .ts ./src && prettier --check ./src",
"dev": "nodemon --exec node --loader ts-node/esm src/index.ts",
"start": "node ./dist/index.js"
},