Skip to content

Commit

Permalink
chore: switch package manager from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
falsepopsky authored May 21, 2024
1 parent d244df4 commit 0ecb3cb
Show file tree
Hide file tree
Showing 6 changed files with 4,050 additions and 4,365 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on: [pull_request]

env:
PNPM_VERSION: 9.1.2

jobs:
prettier:
runs-on: ubuntu-22.04
Expand All @@ -8,15 +11,19 @@ jobs:
name: prettier
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
- name: Use Node 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
run: npm ci
run: pnpm install
- name: Check formatting
run: npm run format:check
run: pnpm format:check

build:
runs-on: ubuntu-22.04
Expand All @@ -25,12 +32,16 @@ jobs:
name: build
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
- name: Use Node 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
run: npm ci
run: pnpm install
- name: Build Vitepress
run: npm run build
run: pnpm build
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
pnpm lint-staged
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ First, fork this repository and clone your fork. Then, in a terminal, `cd` into
### Installation

```bash
npm install
pnpm install
```

### Dev Server

```bash
npm run dev
pnpm dev
```

You can now open your local docs site in your browser. By default, this can done by visiting http://localhost:5173/.
Expand Down
Loading

0 comments on commit 0ecb3cb

Please sign in to comment.