Skip to content

Ft seller dashboard #17

Ft seller dashboard

Ft seller dashboard #17

Workflow file for this run

name: Continuous Deployment
env:
VERCEL_ORG_ID: ${{secrets.VERCEL_ORG_ID}}
VERCEL_PROJECT_ID: ${{secrets.VERCEL_PROJECT_ID}}
on:
workflow_dispatch:
pull_request:
branches:
- develop
permissions:
contents: read
pull-requests: write
jobs:
Test_Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run test
run: npm run test --if-present
- name: Build
run: npm run build
Deploy-Preview:
runs-on: ubuntu-latest
needs: [Test_Build]
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Info
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
id: deploy
run: echo "url=$(vercel deploy --prebuilt --token=${{secrets.VERCEL_TOKEN}})" >> $GITHUB_OUTPUT
- name: Comment PR
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Vercel preview deployment is live at: ${{ steps.deploy.outputs.url }}'
})