Repository navigation
Prebuild Next.js Boilerplate Example #297
This file contains hidden or 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: Prebuild Next.js Boilerplate Example | |
| 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 | |
| corepack enable pnpm | |
| - run: | | |
| npm install -g vercel@latest | |
| vc --version | |
| - working-directory: ./framework-boilerplates/nextjs | |
| run: | | |
| pnpm install --frozen-lockfile | |
| env: | |
| NPM_CONFIG_LOGLEVEL: http | |
| # - working-directory: ./framework-boilerplates/nextjs | |
| # run: | | |
| # vc build --debug --token $VERCEL_TOKEN --yes --prod | |
| # env: | |
| # VERCEL_PROJECT_ID: prj_D1Kp06w4jE67wyV3WlMHjtfDLjhC | |
| # VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }} | |
| # VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }} | |
| - working-directory: ./framework-boilerplates/nextjs | |
| run: | | |
| vc deploy --debug --token $VERCEL_TOKEN --yes --prod | |
| env: | |
| VERCEL_PROJECT_ID: prj_D1Kp06w4jE67wyV3WlMHjtfDLjhC | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }} |