Bump @types/node from 20.12.7 to 20.12.10 in /nextjs #2936
Workflow file for this run
This file contains 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: Nextjs CI | |
on: [push, pull_request, workflow_dispatch] | |
defaults: | |
run: | |
working-directory: nextjs | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm ci | |
- run: npm run build | |
deploy: | |
if: github.actor != 'dependabot[bot]' && github.ref != 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
mkdir .vercel | |
echo $VERCEL_PROJECT > .vercel/project.json | |
npx vercel --token $VERCEL_TOKEN | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_PROJECT: ${{ secrets.VERCEL_PROJECT }} | |
deployToProduction: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
mkdir .vercel | |
echo $VERCEL_PROJECT > .vercel/project.json | |
npx vercel --prod --token $VERCEL_TOKEN | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_PROJECT: ${{ secrets.VERCEL_PROJECT }} | |
forceDeploy: | |
if: github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
mkdir .vercel | |
echo $VERCEL_PROJECT > .vercel/project.json | |
npx vercel --force --token $VERCEL_TOKEN | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_PROJECT: ${{ secrets.VERCEL_PROJECT }} |