Issues Deploying Edge Functions from Github Actions/Act Local
Hi there, i'm trying to deploy my functions through github actions. I'm testing my workflow locally using Act (https://github.com/nektos/act). the following is my .yml file:
however, i run into an error on the last step, the image is the error.
Thank you for the help
name: Deploy to Production
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}
steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
with:
version: latest
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
# Generate TypeScript types from database schema
- run: |
echo "Linking to Supabase project..."
supabase link --project-ref $SUPABASE_PROJECT_ID
# Deploys migration to production database
- run: |
echo "Running database migrations..."
supabase db push --yes --include-seed
- run: |
echo "Deploying edge functions..."
supabase functions deploy --project-ref $SUPABASE_PROJECT_IDhowever, i run into an error on the last step, the image is the error.
Thank you for the help
