build(vercel): add rewrite rules for testnet and mainnet APIs #46
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: Web CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "web/**" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "web/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint code | |
| run: npm run lint | |
| - name: Build application | |
| run: npm run build |