Skip to content

Commit

Permalink
Merge pull request #10 from 0918nobita/ci-workflow
Browse files Browse the repository at this point in the history
CI ワークフローの実行条件を追記した
  • Loading branch information
0918nobita authored Nov 13, 2023
2 parents f2856da + ae061bf commit b05d255
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -22,5 +22,9 @@
"dependencies": {
"@vanilla-extract/css": "1.13.0",
"pinyin-pro": "3.17.0"
},
"prettier": {
"semi": true,
"singleQuote": true
}
}

0 comments on commit b05d255

Please sign in to comment.