Skip to content

Commit

Permalink
Use Yarn 2+
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Feb 18, 2024
1 parent 0e05b95 commit fd1ea2d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/front-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,24 +170,30 @@ jobs:
uses: "actions/[email protected]"
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"
Expand Down

0 comments on commit fd1ea2d

Please sign in to comment.