From 158c5e4558d6d7534303a78eca896d68211aa6df Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Thu, 13 Feb 2025 20:28:24 +0100 Subject: [PATCH] Update nextjs.yml --- .github/workflows/nextjs.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 29c11ab..dae4344 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -25,21 +25,19 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" + cache: yarn + cache-dependency-path: web/yarn.lock - - name: Install dependencies and update package-lock.json + - name: Install dependencies run: | cd web - npm install - git config user.name github-actions - git config user.email github-actions@github.com - git add package-lock.json - git commit -m "Update package-lock.json" || echo "No changes to commit" - git push + yarn install --frozen-lockfile - name: Build Next.js project run: | cd web - npm run build + yarn build + yarn export - name: Copy guides and changelog run: | @@ -63,4 +61,3 @@ jobs: id: deployment uses: actions/deploy-pages@v4 -