File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches : [main]
4+ pull_request :
5+ branches : [main]
6+
7+ jobs :
8+ lgtm :
9+ runs-on : macos-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : actions/setup-node@v4
13+ with :
14+ cache : ' npm'
15+ node-version-file : ' .nvmrc'
16+ - run : npm ci
17+ - run : npm run lgtm
Original file line number Diff line number Diff line change 1+ 24.9
Original file line number Diff line number Diff line change @@ -14,9 +14,17 @@ nav: 0
1414
1515## INSTALL
1616
17+ - Install [ nvm] ( https://github.com/nvm-sh/nvm ) - Node Version Manager, then:
18+
19+ ``` bash
20+ $ nvm install
21+ $ nvm use
22+ $ node -v # make sure your version satisfies package.json#engines.node
23+ ```
24+
25+ nb: if you want this node version to be your default nvm's one: ` nvm alias default node `
26+
1727``` sh
18- $ git clone https://github.com/pmndrs/docs.git
19- $ cd docs
2028$ npm ci
2129```
2230
Original file line number Diff line number Diff line change 6262 "build" : " next build" ,
6363 "format" : " prettier -w src/" ,
6464 "lint" : " eslint src/**/*.{ts,tsx} && prettier . --check" ,
65- "prepare" : " husky"
65+ "prepare" : " husky" ,
66+ "lgtm" : " npm run lint && npm run format && npm run build && echo 'lgtm!' || echo 'not good to me'"
6667 },
6768 "engines" : {
6869 "node" : " >=20"
You can’t perform that action at this time.
0 commit comments