diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml index 53d01c6..c6b0832 100644 --- a/.github/workflows/update-data.yml +++ b/.github/workflows/update-data.yml @@ -20,11 +20,17 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.x' + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' - name: Install dependencies run: | python -m pip install --upgrade pip pip install requests datasette datasette-publish-vercel geojson-to-sqlite + npm install -g vercel - name: Run update script run: python script.py @@ -33,6 +39,7 @@ jobs: env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} run: | + vercel pull --yes --environment=production --token=$VERCEL_TOKEN datasette publish vercel data.db \ --project tampa-dev-coord \ --token $VERCEL_TOKEN \