From 4d337ca9e8296cb3b5218aa31bd129d11b17865a Mon Sep 17 00:00:00 2001 From: Hunain Bin Sajid Date: Thu, 12 Sep 2024 23:30:25 +0500 Subject: [PATCH] fix: add single job for main.yml --- .github/workflows/main.yml | 32 +++++--------------------------- package.json | 2 +- tsconfig.build.json | 1 + 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d3a519..904f4e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,47 +9,25 @@ on: - main jobs: - lint: + ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - name: Install Dependencies - run: npm install + run: npm ci + - name: Run ESLint run: npm run lint - prettier: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Dependencies - run: npm ci - name: Run Prettier Formatter run: npm run format - typescript: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install Dependencies - run: npm install - name: Check TypeScript Types run: npm run tsc - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install Dependencies - run: npm install - name: Run Tests run: npm run test - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install Dependencies - run: npm install - name: Build Application run: npm run build diff --git a/package.json b/package.json index bf69339..04adaf1 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "prepare": "husky", "build": "tsc -p tsconfig.build.json", "test": "vitest run", - "format": "prettier --write .", + "format": "prettier --write 'src/**/*.{ts,json}'", "lint": "eslint src", "tsc": "bash -c tsc -p tsconfig.json", "docs:build": "typedoc src/index.ts --out out", diff --git a/tsconfig.build.json b/tsconfig.build.json index 6b55313..6ff9cf5 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,6 +4,7 @@ "compilerOptions": { "declaration": true, "declarationMap": true, + "noEmit": false, "outDir": "dist" } }