diff --git a/.github/workflows/composition.yml b/.github/workflows/composition.yml index 75e9590..cacb60d 100644 --- a/.github/workflows/composition.yml +++ b/.github/workflows/composition.yml @@ -1,5 +1,4 @@ -# check for code lint and test -name: Composition +name: Code Quality and Testing on: push: branches: @@ -8,7 +7,7 @@ on: branches: - main jobs: - lint: + lint_test: runs-on: ubuntu-latest steps: - name: Checkout @@ -18,5 +17,7 @@ jobs: with: node-version: 20.x cache: 'npm' - - run: npm i - - run: npm run lint \ No newline at end of file + - run: npm ci + - name: Lint + run: npm run lint + diff --git a/package.json b/package.json index 638a325..5ab869c 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dev:host": "vite --host", "build": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "tsc": "tsc", "preview": "vite preview" }, "dependencies": {