From 1ff6c78fe0df56184d2d5d2cc6c9a6e0c781fea9 Mon Sep 17 00:00:00 2001 From: pahaz Date: Sat, 11 May 2024 14:20:26 +0300 Subject: [PATCH] fix(monorepo): add yarn package manager --- .github/workflows/ci.build.yml | 6 +++++- .github/workflows/ci.linters.yml | 6 +++++- .yarnrc.yml | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .yarnrc.yml diff --git a/.github/workflows/ci.build.yml b/.github/workflows/ci.build.yml index 1c76317..f7e7987 100644 --- a/.github/workflows/ci.build.yml +++ b/.github/workflows/ci.build.yml @@ -22,6 +22,10 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: install packages - run: yarn + run: | + corepack enable + yarn init -2 + yarn set version stable + yarn install - name: BUILD run: yarn build diff --git a/.github/workflows/ci.linters.yml b/.github/workflows/ci.linters.yml index 10cf103..1d8c391 100644 --- a/.github/workflows/ci.linters.yml +++ b/.github/workflows/ci.linters.yml @@ -22,6 +22,10 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: install packages - run: yarn + run: | + corepack enable + yarn init -2 + yarn set version stable + yarn install - name: BUILD run: yarn lint diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..3186f3f --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules