-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch package manager from yarn to pnpm
- Loading branch information
1 parent
d244df4
commit 0ecb3cb
Showing
6 changed files
with
4,050 additions
and
4,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.