Skip to content

chore(deps): update dependency @types/node to v20.17.9 #385

chore(deps): update dependency @types/node to v20.17.9

chore(deps): update dependency @types/node to v20.17.9 #385

Workflow file for this run

name: Deploy CI
on:
push:
branches: [main]
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Setup Next.js cache
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:ci
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info
deploy:
needs: [build]
runs-on: ubuntu-latest
permissions:
deployments: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Deploy to Vercel
uses: BetaHuhn/deploy-to-vercel-action@latest
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PR_PREVIEW_DOMAIN: "{REPO}-{PR}.vercel.app"