build(deps): bump follow-redirects from 1.15.2 to 1.15.4 #286
Workflow file for this run
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 Preview | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
paths-ignore: | |
- '*.md' | |
workflow_dispatch: | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
jobs: | |
deploy-preview: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Neon Database Create Branch Action | |
uses: neondatabase/create-branch-action@v3 | |
id: create_branch | |
with: | |
project_id: ${{ secrets.NEON_PROJECT_ID }} | |
branch_name: ${{ github.event.pull_request.head.ref || github.head_ref }} | |
api_key: ${{ secrets.NEON_API_KEY }} | |
username: ${{ secrets.PG_USERNAME }} | |
password: ${{ secrets.PG_PASSWORD }} | |
- name: Install Vercel CLI | |
run: npm install --global vercel@latest | |
- name: Deploy Preview to Vercel | |
id: deploy | |
run: | | |
preview_url=$(vercel deploy \ | |
--env DATABASE_URL="${{ steps.create_branch.outputs.db_url_with_pooler}}/neondb?pgbouncer=true&connect_timeout=15&pool_timeout=15" \ | |
--build-env DIRECT_DATABASE_URL="${{ steps.create_branch.outputs.db_url}}/neondb?connect_timeout=10" \ | |
--public --yes --token=${{ secrets.VERCEL_TOKEN }}) | |
echo preview_url=$preview_url >> $GITHUB_OUTPUT | |
- name: Comment on Pull Request | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
Vercel Preview URL :rocket: : ${{ steps.deploy.outputs.preview_url }} | |
Neon branch :elephant: : https://console.neon.tech/app/projects/${{ secrets.NEON_PROJECT_ID }}/branches/${{ steps.create_branch.outputs.branch_id }} |