Skip to content

Commit 9134d32

Browse files
authored
chore: lgtm ci workflow (#382)
1 parent 453c7ac commit 9134d32

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.9

docs/getting-started/introduction.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
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"

0 commit comments

Comments
 (0)