mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
Update nextjs.yml
This commit is contained in:
parent
a7a93e1507
commit
659c3c2e27
27
.github/workflows/nextjs.yml
vendored
27
.github/workflows/nextjs.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user