feat: enhance README.md and add usage/setup guides for better onboarding #3
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: Build CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: "Next.js Build" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: TypeScript type check | |
| run: npx tsc --noEmit | |
| - name: Build Next.js production bundle | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_MIDNIGHT_NETWORK: TestNet | |
| NEXT_PUBLIC_NODE_WS_URL: wss://rpc.testnet-01.midnight.network/ws | |
| NEXT_PUBLIC_INDEXER_URI: https://indexer.testnet-01.midnight.network/api/v1/graphql | |
| NEXT_PUBLIC_INDEXER_WS_URI: wss://indexer.testnet-01.midnight.network/api/v1/graphql | |
| NEXT_PUBLIC_PROOF_SERVER_URI: https://proving.testnet-01.midnight.network | |
| DATABASE_URL: postgres://dummy:dummy@localhost:5432/dummy | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nextjs-build | |
| path: .next/ | |
| retention-days: 3 |