Update dependency eslint to v9 #3131
This file contains 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: Deploy to Staging | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
SUPABASE_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }} | |
GA_NODE_VERSION: ${{ secrets.GA_NODE_VERSION }} | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy-migrations-staging: | |
runs-on: ubuntu-22.04 | |
environment: staging | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- name: Link to hosted Supabase | |
run: supabase link --project-ref ${{ secrets.SUPABASE_PROJECT_ID }} | |
- name: Push local migrations to hosted Supabase | |
run: supabase db push | |
- name: Push local functions to hosted Supabase | |
run: supabase functions deploy | |
deploy-vercel-staging: | |
needs: deploy-migrations-staging | |
runs-on: ubuntu-latest | |
environment: staging | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.GA_NODE_VERSION }} | |
- name: Install Vercel CLI | |
run: npm install --global vercel@latest | |
- name: Pull Vercel Environment Information | |
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build Project Artifacts | |
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Project Artifacts to Vercel | |
run: echo "url=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT | |
id: deploy | |
- name: Comment Preview URL Preview URL | |
if: github.event_name == 'pull_request' && !failure() | |
uses: thollander/actions-comment-pull-request@v2.5.0 | |
with: | |
message: Preview can be found at ${{ steps.deploy.outputs.url }} | |
comment_tag: execution | |
mode: recreate | |