Merge pull request #103 from sanwebinfo/renovate/major-nextjs-monorepo #110
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: vercel-deploy | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Cache node modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: '18.x' | |
- name: install vercel CLI | |
run: yarn global add vercel | |
- name: Deploy Project Vercel | |
run: vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} |