aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-08 17:36:31 +0000
committerMohamedBassem <me@mbassem.com>2024-02-08 19:34:59 +0000
commitc5bfa5000f178475d0b019b5a960916134b2ecfb (patch)
tree719475f7960793c5b714fbf5de2e8606a6771b83 /.github
parentbae1bccbd8029db4bacbd8ecc9f668e7119016c8 (diff)
downloadkarakeep-c5bfa5000f178475d0b019b5a960916134b2ecfb.tar.zst
[build] Migrating to yarn 2
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0bd6d077..e0d26326 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -9,13 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
+ # This is a workaround for: https://github.com/actions/setup-node/issues/899
+ - name: Enable Corepack before setting up Node
+ run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 21
- cache: 'yarn'
- cache-dependency-path: 'yarn.lock'
+ cache: "yarn"
+ cache-dependency-path: "yarn.lock"
- name: Install deps
- run: yarn install --frozen-lockfile
+ run: yarn install --immutable
- name: Lint
run: yarn eslint .
- name: Format