Skip to content

Commit

Permalink
Migrate pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
syunta committed Aug 2, 2024
1 parent 442960a commit 57916ae
Show file tree
Hide file tree
Showing 6 changed files with 1,346 additions and 2,069 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,30 @@ jobs:
- name: CheckOut
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 9

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache: pnpm
cache-dependency-path: 'package.json'

- name: Install Packages
run: |
npm install
npm install --prefix tests/rules/react
npm install --prefix tests/rules/next
pnpm i
pnpm i --prefix tests/rules/react
pnpm i --prefix tests/rules/next
- name: lint
run: npm run lint
run: pnpm run lint

- name: format
run: npm run format:check
run: pnpm run format:check

- name: test
run: npm run test
run: pnpm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"format": "run-s \"format:eslint -- {1}\" \"format:prettier -- {1}\" --",
"format:eslint": "eslint --fix",
"format:prettier": "prettier --write",
"format-all": "npm run format \"./**/*.{js,ts,tsx}\"",
"format-all": "pnpm run format \"./**/*.{js,ts,tsx}\"",
"format-all:eslint": "eslint --fix \"./**/*.{js,ts,tsx}\"",
"format-all:prettier": "prettier --write \"./**/*.{js,ts,tsx}\"",
"format:check": "prettier --check \"./**/*.{js,ts,tsx}\""
Expand Down
Loading

0 comments on commit 57916ae

Please sign in to comment.