diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a37da7d..3cc9a43 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -44,14 +44,13 @@ jobs: - run: npm run prettier:check - run: npm run eslint:check - run: npm run test - # TODO: Add deploy job - # deploy: - # runs-on: ubuntu-latest - # needs: [test, analyze] - # if: github.ref == 'refs/heads/main' - # steps: - # - uses: actions/checkout@v3 - # - uses: superfly/flyctl-actions/setup-flyctl@master - # - run: flyctl deploy --remote-only - # env: - # FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + deploy: + runs-on: ubuntu-latest + needs: [test, analyze] + if: github.ref == 'refs/heads/main' + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/package-lock.json b/package-lock.json index df449e1..6071da3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,9 @@ "lint-staged": "^14.0.1", "prettier": "3.0.3", "typescript": "^5.2.2" + }, + "engines": { + "node": "18 || 20" } }, "node_modules/@aashutoshrathi/word-wrap": {