Skip to content

Automated PR: staging to main #964

Automated PR: staging to main

Automated PR: staging to main #964

Workflow file for this run

name: on-pr
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
env:
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v2
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm install
- name: Lint
run: npm run lint
types:
runs-on: ubuntu-latest
name: Types
steps:
- uses: actions/checkout@v2
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm install
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm install
- name: Build NextJS
run: NEXT_PUBLIC_ENVIRONMENT=main npm run build