Skip to content

Commit

Permalink
chore: 依存更新 / pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Feb 3, 2024
1 parent 1afb8f3 commit 17b3266
Show file tree
Hide file tree
Showing 3 changed files with 2,241 additions and 17 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,47 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: "pnpm"
- name: Install
run: |
yarn
pnpm install
- name: Lint
run: |
yarn lint:prettier
yarn lint:eslint
pnpm lint:prettier
pnpm lint:eslint
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

needs: lint

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: "pnpm"
- name: Install
run: |
yarn
pnpm install
- name: Build
run: |
yarn build
pnpm build
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"format:eslint": "eslint './src/**/*.{js,ts,tsx}' --cache --fix"
},
"devDependencies": {
"@ci7lus/eslint-config": "^1.1.1",
"eslint": "^8.34.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"nodemon": "^2.0.20",
"prettier": "^2.8.4",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"@ci7lus/eslint-config": "^1.2.1",
"eslint": "^8.56.0",
"husky": "^9.0.10",
"lint-staged": "^15.2.1",
"nodemon": "^3.0.3",
"prettier": "^3.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"lint-staged": {
"*.{js,ts,tsx}": "eslint --max-warnings 0 --cache",
Expand Down
Loading

0 comments on commit 17b3266

Please sign in to comment.