diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e2323c..e331c09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,16 @@ name: CI -on: push +on: + push: + paths: + - ".github/workflows/**" + - "src/**/*.ts" + - ".editorconfig" + - ".eslintrc.js" + - "package.json" + - "package-lock.json" + - "tsconfig.json" + - "vite.config.ts" jobs: ci: @@ -11,5 +21,6 @@ jobs: with: node-version: 16.15.0 - run: npm ci + - run: npm run build - run: npm run lint - - run: npx prettier --check . + - run: npx prettier --check ./src/**/*.ts diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 25c75be..0000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "semi": true, - "singleQuote": true -} diff --git a/package.json b/package.json index facbdeb..d7bcd7c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "vite build", "lint": "eslint --ext .ts .", - "format": "prettier --write ." + "format": "prettier --write ./src/**/*.ts" }, "devDependencies": { "@types/node": "20.8.10", @@ -22,5 +22,9 @@ "dependencies": { "@vanilla-extract/css": "1.13.0", "pinyin-pro": "3.17.0" + }, + "prettier": { + "semi": true, + "singleQuote": true } }