Update nextjs.yml

This commit is contained in:
MacRimi 2025-02-13 21:06:06 +01:00 committed by GitHub
parent a7a93e1507
commit 659c3c2e27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,21 +26,26 @@ jobs:
with: with:
node-version: "20" node-version: "20"
- name: Install dependencies and update package-lock.json - name: Install dependencies
run: | run: |
cd web cd web
npm install npm ci
git config user.name github-actions
git config user.email github-actions@github.com - name: Ensure required dependencies are installed
git add package-lock.json run: |
git commit -m "Update package-lock.json" || echo "No changes to commit" cd web
git push npm list next-themes || npm install next-themes
npm list @radix-ui/react-accordion || npm install @radix-ui/react-accordion
- name: Verify next-themes installation - name: Verify next-themes installation
run: | run: |
cd web cd web
ls node_modules/next-themes || echo "next-themes NOT FOUND!" if [ -d "node_modules/next-themes" ]; then
echo "✅ next-themes found!"
else
echo "❌ ERROR: next-themes NOT FOUND!"
exit 1
fi
- name: Build Next.js project - name: Build Next.js project
run: | run: |
@ -50,8 +55,8 @@ jobs:
- name: Copy guides and changelog - name: Copy guides and changelog
run: | run: |
mkdir -p web/out/guides mkdir -p web/out/guides
cp guides/*.md web/out/guides/ cp -r guides/*.md web/out/guides/ || echo "No guides found"
cp CHANGELOG.md web/out/ cp CHANGELOG.md web/out/ || echo "No CHANGELOG.md found"
- name: Upload artifact to GitHub Pages - name: Upload artifact to GitHub Pages
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3