Skip to content

Commit

Permalink
build: Migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 6, 2024
1 parent d98a051 commit 3234022
Show file tree
Hide file tree
Showing 13 changed files with 3,311 additions and 18,933 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pnp.* linguist-generated
yarn.lock linguist-generated
package-lock.json linguist-generated
node_modules/ linguist-generated
pnpm-lock.yaml linguist-generated
# Build files
dist/ linguist-generated
build/ linguist-generated
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/auto-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ jobs:
with:
node-version: 'lts/*' # Use LTS version of Node.js

# 📦 Install Yarn
- name: 📦 Install Yarn
run: corepack enable && yarn set version stable
# 📦 Install pnpm
- name: 📦 Install pnpm
run: corepack enable pnpm

# 📥 Install dependencies
- name: 📥 Install dependencies
run: yarn install
run: pnpm install

# 🚨 Run Lint check
- name: 🚨 Run Lint
run: yarn run lint | tee lint-results.txt
run: pnpm run lint | tee lint-results.txt

# 🎨 Run Prettier format check
- name: 🎨 Run Prettier
run: yarn run format | tee prettier-results.txt
run: pnpm run format | tee prettier-results.txt

# 🧪 Run tests
- name: 🧪 Run tests
run: yarn run test:ci | tee test-results.txt
run: pnpm run test:ci | tee test-results.txt

# 🚮 Clean up all results for comment
- name: 🚮 Clean up results
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/label-pr-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORED: |
pnpm-lock.yaml
yarn.lock
.pnp.*
dist/**
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
yarn lint-staged
yarn run test:ci
pnpm lint-staged
pnpm run test:ci
12,530 changes: 0 additions & 12,530 deletions .pnp.cjs

This file was deleted.

Loading

0 comments on commit 3234022

Please sign in to comment.