Add Cross-Chain Visualization component showcasing Supra integration … #211
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Backend | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'backend/**' | |
| workflow_dispatch: | |
| jobs: | |
| deploy-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| cache-dependency-path: backend/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ./backend | |
| run: npm ci | |
| - name: Build | |
| working-directory: ./backend | |
| run: npm run build | |
| - name: Deploy to your hosting provider | |
| # Add your deployment steps here (e.g., Railway, Render, Heroku, etc.) | |
| run: | | |
| echo "Add your deployment commands here" | |
| # Example for Railway: | |
| # npm install -g @railway/cli | |
| # railway up | |