Automated PR: staging to main #979
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: 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 |