Update nextjs.yml

This commit is contained in:
MacRimi 2025-02-13 20:28:24 +01:00 committed by GitHub
parent 22f0fc4ed5
commit 158c5e4558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,21 +25,19 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "20" node-version: "20"
cache: yarn
cache-dependency-path: web/yarn.lock
- name: Install dependencies and update package-lock.json - name: Install dependencies
run: | run: |
cd web cd web
npm install yarn install --frozen-lockfile
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
- name: Build Next.js project - name: Build Next.js project
run: | run: |
cd web cd web
npm run build yarn build
yarn export
- name: Copy guides and changelog - name: Copy guides and changelog
run: | run: |
@ -63,4 +61,3 @@ jobs:
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4