feat: add OpenGraph / SEO support for single-field_type.js #107
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: Build | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
build: | |
name: Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["16", "18"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.npm | |
node_modules | |
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install and Build | |
env: | |
FAUST_SECRET_KEY: ${{secrets.FAUST_SECRET_KEY}} | |
NEXT_PUBLIC_WORDPRESS_URL: ${{secrets.NEXT_PUBLIC_WORDPRESS_URL}} | |
run: | | |
npm ci | |
npm run build | |
- name: Error handling | |
if: failure() | |
run: echo "Build failed!" |