Skip to content

Remove problematic 'paths'? #1

Remove problematic 'paths'?

Remove problematic 'paths'? #1

Workflow file for this run

name: prod-ci
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_CONTENT_CREATOR_USECASE_DEMO_PROJECT_ID }}
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install dependencies
run: |
node -v
npm -v
npm ci --no-fund
- name: Check Prettier
run: npm run check-format
- name: Set Vercel Token
id: set-vercel-token
run: |
if [ "${{ github.actor }}" = "ErwanDecoster" ]; then
echo "vercel_token=${{ secrets.VERCEL_TOKEN_Erwan }}" >> $GITHUB_OUTPUT
else
echo "vercel_token=${{ secrets.VERCEL_TOKEN }}" >> $GITHUB_OUTPUT
fi
- name: Vercel deploy to prod
run: |
npm install --global vercel@latest
vercel pull --yes --environment=production --scope i-exec --token=${{ steps.set-vercel-token.outputs.vercel_token }}
SET_SUBPATH_FOR_PROD=true vercel build --prod --scope i-exec --token=${{ steps.set-vercel-token.outputs.vercel_token }}
vercel deploy --prebuilt --prod --scope i-exec --token=${{ steps.set-vercel-token.outputs.vercel_token }}