# .woodpecker.yml # Run pipeline on pushes to main and pull requests when: event: [push, pull_request] branch: [main, develop, feat/*, feature/*] # Define environment variables environment: NODE_ENV: production # Pipeline steps steps: # Install dependencies - name: install image: node:18-alpine commands: - echo "🔧 Installing dependencies..." - npm ci --silent when: event: [push, pull_request] # Build application - name: build image: node:18-alpine commands: - echo "🏗️ Building application..." - npm run build when: event: [push, pull_request]