Skip to content

chore: use pnpm as package manager #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:

- name: Install and Build 🔧
run: |
npm ci
npm run build
pnpm install --frozen-lockfile
pnpm build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand All @@ -33,10 +33,10 @@ jobs:
uses: actions/checkout@v4

- name: Install
run: npm ci
run: pnpm install --frozen-lockfile

- name: test
run: npm run test -- --watch=false --browsers=ChromeHeadless
run: pnpm test -- --watch=false --browsers=ChromeHeadless

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: build
run: npm run build
run: pnpm build

lint:
runs-on: ubuntu-latest
Expand All @@ -29,10 +29,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: lint
run: npm run lint
run: pnpm lint

test-chrome:
runs-on: ubuntu-latest
Expand All @@ -43,10 +43,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: test
run: npm run test -- --watch=false --browsers=ChromeHeadless
run: pnpm test -- --watch=false --browsers=ChromeHeadless

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
Expand All @@ -62,10 +62,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: test
run: npm run test -- --watch=false --browsers=FirefoxHeadless
run: pnpm test -- --watch=false --browsers=FirefoxHeadless

test-safari:
runs-on: macos-14
Expand All @@ -76,10 +76,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: test
run: npm run test -- --watch=false --browsers=SafariNative
run: pnpm test -- --watch=false --browsers=SafariNative

prettier:
runs-on: ubuntu-latest
Expand All @@ -90,7 +90,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: prettier
run: npx prettier . --check
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
"prettier-plugin-organize-imports": "^4.0.0",
"typescript": "~5.6.0",
"typescript-eslint": "^8.0.0"
}
},
"packageManager": "[email protected]"
}
Loading