Skip to content

feat: Turborepo remote caching for all CI steps #1

feat: Turborepo remote caching for all CI steps

feat: Turborepo remote caching for all CI steps #1

Workflow file for this run

name: Vercel Preview
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install -g vercel@latest
- name: Deploy preview
id: deploy
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
url=$(vercel deploy --token "$VERCEL_TOKEN" --yes 2>&1 | tail -1)
echo "url=$url" >> "$GITHUB_OUTPUT"
- name: Comment preview URL on PR
uses: actions/github-script@v7
with:
script: |
const url = '${{ steps.deploy.outputs.url }}';
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `### 🔍 Vercel Preview Deployment\n\n**URL:** ${url}\n\n> Uses Stellar **testnet** contract addresses.`,
});