Run Smart Accounts #14
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: Run Smart Accounts | |
| on: | |
| schedule: | |
| # Runs at 00:00 UTC every day | |
| - cron: '0 0 * * *' | |
| # Allow manual triggering | |
| workflow_dispatch: | |
| jobs: | |
| run-smart-accounts: | |
| runs-on: ubuntu-latest | |
| env: | |
| COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Change directory | |
| run: cd smart_accounts | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: PWD | |
| working-directory: smart_accounts | |
| run: pwd | |
| - name: Install dependencies | |
| working-directory: smart_accounts | |
| run: npm install | |
| - name: Build TypeScript | |
| working-directory: smart_accounts | |
| run: npm run build | |
| - name: Run application | |
| working-directory: smart_accounts | |
| run: npm run start |