Skip to content

Commit

Permalink
chore: switch dev from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Nov 8, 2024
1 parent 2c9cd70 commit 77205d7
Show file tree
Hide file tree
Showing 5 changed files with 10,283 additions and 8,616 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
name: Test
name: CI

on: [push, pull_request]

jobs:
Test:
test:
name: Test Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version:
- 18
- 22

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 9.12.3
run_install: false

- uses: actions/setup-node@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies

- run: yarn install --frozen-lockfile
- name: test
run: yarn test
- name: Run test
run: pnpm test
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enable-pre-post-scripts=true
package-manager-strict=false
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"deploy": "gh-pages -d demo"
},
"dependencies": {
"p-map": "^4.0.0",
"sharp": "^0.33.4"
"p-map": "^7.0.2",
"sharp": "^0.33.5"
},
"devDependencies": {
"ava": "^3.15.0",
Expand Down
Loading

0 comments on commit 77205d7

Please sign in to comment.