From fd1ea2df3a2a78e0cf687afae2f45232dc2b8c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 19 Feb 2024 00:16:08 +0100 Subject: [PATCH] Use Yarn 2+ --- .github/workflows/front-end.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/front-end.yml b/.github/workflows/front-end.yml index 829299a..93255f8 100644 --- a/.github/workflows/front-end.yml +++ b/.github/workflows/front-end.yml @@ -170,24 +170,30 @@ jobs: uses: "actions/setup-node@v4.0.1" with: node-version: "18" - cache: "npm" - # cache: "yarn" + # cache: "npm" + cache: "yarn" + - + name: "Enable Yarn 2+" + run: | + corepack enable + yarn set version stable + yarn --version - name: "Enable strict engine checking" - run: "npm config set engine-strict true" - #run: "yarn config set engine-strict true" + # run: "npm config set engine-strict true" + run: "yarn config set engine-strict true" - name: "Install production dependencies" - run: "npm ci --omit=dev" - #run: "yarn install --non-interactive --pure-lockfile --production=true" + # run: "npm ci --omit=dev" + run: "yarn install --non-interactive --pure-lockfile --production=true" - name: "Checks for security vulnerability advisories" - run: "npm audit --omit=dev" - #run: "yarn audit" + # run: "npm audit --omit=dev" + run: "yarn audit" - name: "Build front-end" - run: "npm run prod:build" - #run: "yarn run prod:build" + # run: "npm run prod:build" + run: "yarn run prod:build" - name: "Check differences to repository" run: "git diff --exit-code"