Skip to content

chore(deps): bump next from 15.5.6 to 16.0.6 #373

chore(deps): bump next from 15.5.6 to 16.0.6

chore(deps): bump next from 15.5.6 to 16.0.6 #373

Workflow file for this run

name: Build and formatting check
on:
push:
branches:
- main
pull_request:
jobs:
website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- name: Get node version
id: node
shell: bash
run: echo "ver=$(node -v)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v4
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ steps.node.outputs.ver }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ steps.node.outputs.ver }}-
- uses: actions/cache@v4
id: nextjs-cache
with:
path: ${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install modules
run: npm clean-install --ignore-scripts
- name: Set up env
run: cp .env.example .env.local
- name: Run ESLint
run: npm run lint
- name: Run Prettier
run: npm run pretty
- name: Check for changes after Prettier
run: if [[ `git status --porcelain` ]]; then git status --porcelain && exit 1; fi
- name: Build
run: npm run build