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"