Skip to content

Commit

Permalink
replace yarn with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronbrill committed Feb 19, 2024
1 parent b440402 commit 9798e49
Show file tree
Hide file tree
Showing 21 changed files with 4,453 additions and 7,313 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,28 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
self: Mergeability

yarn-check:
name: Yarn ${{ matrix.command }}
pnpm-check:
name: Pnpm ${{ matrix.command }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command: ["lint:ci", "format:ci", "styles", "npm audit -A"]
command: ["lint:ci", "format:ci", "styles"]
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'pnpm'

- name: Install project dependencies
run: yarn
run: pnpm install

- name: Check ${{ matrix.command }}
run: yarn ${{ matrix.command }}
run: pnpm --silent ${{ matrix.command }}
env:
FORCE_COLOR: 2
12 changes: 1 addition & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,8 @@
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# yarn2 things
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.next

# typescript
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.tsdk": "node_modules/typescript/lib",
Expand Down
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

768 changes: 0 additions & 768 deletions .yarn/releases/yarn-3.1.1.cjs

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/bin/eslint.js

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/lib/api.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/eslint/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions .yarn/sdks/integrations.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/bin/tsc

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/bin/tsserver

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/lib/tsc.js

This file was deleted.

190 changes: 0 additions & 190 deletions .yarn/sdks/typescript/lib/tsserver.js

This file was deleted.

Loading

0 comments on commit 9798e49

Please sign in to comment.