Update nextjs.yml

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

View File

@ -25,19 +25,21 @@ 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 - name: Install dependencies and update package-lock.json
run: | run: |
cd web cd web
yarn install --frozen-lockfile 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
- name: Build Next.js project - name: Build Next.js project
run: | run: |
cd web cd web
yarn build npm run build
yarn export
- name: Copy guides and changelog - name: Copy guides and changelog
run: | run: |
@ -60,4 +62,3 @@ jobs:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4