File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ jobs:
3232
3333      - name : Prepare production deployment 
3434        run : | 
35-           # Create deployment directory structure  
35+           # Create deployment directory 
3636          mkdir -p deployment 
3737           
38-           # Copy built application  files 
38+           # Copy built files 
3939          cp -r dist/* deployment/ 
4040           
41-           # Create a production  package.json with serve as dependency  
41+           # Create optimized  package.json for production  
4242          cat > deployment/package.json << 'EOF' 
4343          { 
4444            "name": "porfolio-production", 
@@ -61,10 +61,10 @@ jobs:
6161          cd deployment 
6262          npm install --only=production --no-optional 
6363           
64-           # Verify serve is installed 
65-           ls -la node_modules/.bin/ 
64+           # Verify serve installation 
6665          echo "Checking serve installation:" 
67-           npx serve --version || echo "Serve not found via npx" 
66+           ls -la node_modules/.bin/ | grep serve || echo "serve binary not found" 
67+           ./node_modules/.bin/serve --version || echo "serve version check failed" 
6868
6969name : Upload artifact 
7070        uses : actions/upload-artifact@v4 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments