install nodejs

This commit is contained in:
2025-09-09 14:57:58 -04:00
parent 0dcd132355
commit 58f83a8523
3 changed files with 50 additions and 3 deletions
+14 -3
View File
@@ -13,11 +13,22 @@ jobs:
steps:
- name: Checkout code
run: |
echo "Code already available in workspace"
pwd
echo "Current workspace: $(pwd)"
echo "Available files:"
ls -la
echo "Checking for backend and frontend directories:"
# Clone the repository since Gitea runner doesn't auto-checkout
echo "Cloning repository..."
git clone https://gitea.skalas.org/jskala/NFOguard.git /tmp/repo
cp -r /tmp/repo/* .
cp -r /tmp/repo/.* . 2>/dev/null || true
rm -rf /tmp/repo
echo "After checkout:"
ls -la
echo "Backend directory:"
ls -la backend/ 2>/dev/null || echo "backend directory not found"
echo "Frontend directory:"
ls -la frontend/ 2>/dev/null || echo "frontend directory not found"
- name: Check Node.js version
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
echo "Removing .github directory from repository..."
# Check if .github directory exists
if [ -d ".github" ]; then
echo ".github directory found, removing it..."
git rm -rf .github/
git commit -m "Remove GitHub workflows - migrated to Gitea"
echo ".github directory removed and committed"
echo "Don't forget to run: git push"
else
echo ".github directory not found in current directory"
fi
# Check if it's already in .gitignore
if grep -q "^\.github/" .gitignore; then
echo ".github/ is already in .gitignore"
else
echo "Adding .github/ to .gitignore..."
echo "" >> .gitignore
echo "# Ignore GitHub workflows (using Gitea instead)" >> .gitignore
echo ".github/" >> .gitignore
git add .gitignore
git commit -m "Add .github/ to .gitignore"
echo "Added .github/ to .gitignore"
fi
echo ""
echo "Next steps:"
echo "1. Run: git push"
echo "2. Make sure Node.js is installed on your Gitea runner host"
echo "3. Test your pipeline by making a small commit"
+3
View File
@@ -0,0 +1,3 @@
# Remove .github directory from repository
git rm -rf .github/
echo ".github directory removed from repository"