Skip to content

Commit

Permalink
Merge pull request #391 from SergioGlorias/use-pnpm
Browse files Browse the repository at this point in the history
Using pnpm instead of npm
  • Loading branch information
ornicar authored Oct 20, 2024
2 parents bb2d599 + e70e45f commit 589e38c
Show file tree
Hide file tree
Showing 6 changed files with 3,309 additions and 4,901 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run spectral
- run: npm run lint
- uses: pnpm/action-setup@v4
with:
version: 9.12.2
run_install: true
- run: pnpm spectral
- run: pnpm lint
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ jobs:
working-directory: doc
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- run: npm run bundle
- uses: pnpm/action-setup@v4
with:
version: 9.12.2
run_install: true
- run: pnpm build
- run: pnpm bundle
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

```shell
cd doc
npm install
npm run serve
pnpm install
pnpm serve
```

Now open <http://localhost:8089/>. You should see the generated API doc.
Expand All @@ -19,6 +19,6 @@ Make modifications to `doc/specs/lichess-api.yaml`, and reload the page to see y
### Check the yaml files for syntax errors:

```shell
npm run spectral
npm run lint
pnpm spectral
pnpm lint
```
Loading

0 comments on commit 589e38c

Please sign in to comment.