Skip to content

Commit

Permalink
ci: streamline ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed Aug 10, 2024
1 parent 016fac6 commit d23c3eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,5 @@ jobs:
- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Lint
run: npm run lint

- name: Test
run: npm run test

- name: Build
run: npm run build
- name: Build, Test, Lint
run: npm run ci
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ jobs:
- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/github

- name: Test
run: npm run test

- name: Build
run: npm run build
- name: Build, Test, Lint
run: npm run ci

- name: Cleanup
run: npm pkg delete scripts devDependencies
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@
"start": "npm-run-all clean --parallel \"build:* -- -w\"",
"lint": "eslint .",
"test": "vitest run",
"dev": "vite --config dev/vite.config.ts"
"test:ui": "vitest --ui",
"dev": "vite --config dev/vite.config.ts",
"dev:build": "vite build --config dev/vite.config.ts",
"dev:preview": "vite preview --config dev/vite.config.ts",
"ci": "npm-run-all build test lint"
},
"peerDependencies": {
"@types/react": ">=18",
Expand Down

0 comments on commit d23c3eb

Please sign in to comment.