Skip to content

Commit

Permalink
Enable corepack and use yarn 4
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Jul 17, 2024
1 parent 6d734fc commit 4d5d6f2
Show file tree
Hide file tree
Showing 6 changed files with 913 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ jobs:
with:
node-version: "18"

- name: Corepack enable
run: corepack enable

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Typecheck
run: yarn typecheck
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Corepack enable
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build website
run: yarn build
- name: Upload artifact
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-4.3.1.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@
},
"engines": {
"node": ">=18.0"
}
},
"packageManager": "[email protected]"
}

0 comments on commit 4d5d6f2

Please sign in to comment.