diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c5e91d62..22eaf779 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,10 +8,17 @@ jobs: update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: npm install - - run: npm run db:export - - uses: tibdex/github-app-token@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + if: ${{ !env.ACT }} + with: + node-version: 18 + cache: 'npm' + - name: install dependencies + run: npm install + - name: export data to ./api + run: npm run db:export + - uses: tibdex/github-app-token@v1.8.2 if: ${{ !env.ACT }} id: create-app-token with: