Skip to content

Commit

Permalink
ci: better husky handling and cleaned prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucagiove committed Dec 23, 2023
1 parent ddd0a62 commit 985b0ca
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
pnpm version patch
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile --prod

- name: Build and Publish
run: pnpm publish
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
"build": "tsc",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"prepublishOnly": "pnpm run build"
"prepublishOnly": "pnpm run build",
"postinstall": "is-ci || husky install"
},
"dependencies": {
"is-ci": "^3.0.1",
"lodash": "^4.17.21",
"uuid": "^9.0.0"
},
Expand All @@ -32,8 +34,8 @@
"husky": "^8.0.0",
"jest": "^29.5.0",
"lint-staged": "^14.0.1",
"mongodb-memory-server": "^8.13.0",
"mongodb": "^4.17.2",
"mongodb-memory-server": "^8.13.0",
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
Expand Down
Loading

0 comments on commit 985b0ca

Please sign in to comment.