Skip to content

Commit

Permalink
ci: 🔧 use new ci script command
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashRajpurohit committed Aug 27, 2024
1 parent ebd4dee commit 185d5d8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-dancers-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@akashrajpurohit/ts-npm-template": patch
---

ci: :wrench: use new ci script command
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
- name: Install dependencies ⏬
run: pnpm install --no-frozen-lockfile

- name: Test 🔫
run: pnpm run test:coverage
- name: CI ⚙️
run: pnpm run ci
env:
NODE_ENV: production

- name: Report Coverage 📝
if: always() # Also generate the report if tests are failing
Expand Down
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 dependencies ⏬
run: pnpm install --no-frozen-lockfile

- name: Test 🔫
run: pnpm run test:coverage

- name: Build ⏰
run: pnpm build
- name: CI ⚙️
run: pnpm run ci
env:
NODE_ENV: production

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"changeset": "changeset",
"check-exports": "attw --pack ."
"check-format": "biome check ./src",
"check-exports": "attw --pack .",
"ci": "npm run check-exports && npm run check-format && npm run lint && npm run test:coverage && npm run build"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.4",
Expand Down

0 comments on commit 185d5d8

Please sign in to comment.