Skip to content

Fix __dirname in Express example. (#1224) #20

Fix __dirname in Express example. (#1224)

Fix __dirname in Express example. (#1224) #20

name: Prebuild Vibe Coding Platform
on:
push:
branches:
- main
workflow_dispatch:
inputs:
jobs:
clone-build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: |
node --version
npm --version
- run: |
npm install -g vercel@latest
vc --version
- working-directory: ./apps/vibe-coding-platform
run: |
npm install -g [email protected]
pnpm install
env:
NPM_CONFIG_LOGLEVEL: http
- working-directory: ./apps/vibe-coding-platform
run: |
vc build --debug --token $VERCEL_TOKEN --yes --prod
env:
VERCEL_PROJECT_ID: prj_Ra44pBgoh6lgdkuN9u8f5ouPGbVM
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}
- working-directory: ./apps/vibe-coding-platform
run: |
vc deploy --debug --token $VERCEL_TOKEN --yes --prod --prebuilt --archive=tgz
env:
VERCEL_PROJECT_ID: prj_Ra44pBgoh6lgdkuN9u8f5ouPGbVM
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}