Skip to content

Bump braces from 3.0.2 to 3.0.3 #252

Bump braces from 3.0.2 to 3.0.3

Bump braces from 3.0.2 to 3.0.3 #252

Workflow file for this run

name: Build
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
public_path:
type: string
description: 'Inject public path'
required: false
default: ''
branch:
type: string
description: 'Branch to build'
required: true
default: 'master'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: |
npm pkg delete scripts.prepare
npm ci
- name: Make envfile
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_NEXT_PUBLIC_GA_TRACKING_ID: "${{ secrets.NEXT_PUBLIC_GA_TRACKING_ID }}"
envkey_NEXT_PUBLIC_FORMSPREE_ID: "${{ secrets.NEXT_PUBLIC_FORMSPREE_ID }}"
envkey_NEXT_PUBLIC_HOTJAR_ID: ${{ secrets.NEXT_PUBLIC_HOTJAR_ID }}
envkey_NEXT_PUBLIC_HOTJAR_SNIPPET_VERSION: ${{ secrets.NEXT_PUBLIC_HOTJAR_SNIPPET_VERSION }}
envkey_PUBLIC_PATH: ${{ github.event.inputs.public_path }}
directory: '.'
file_name: .env.local
fail_on_empty: false
- name: Lint
run: |
npm run lint
npm run lint:editorconfig
- name: Build
run: npm run build
- name: Check seo
run: npm run check-seo
- name: e2e
uses: cypress-io/github-action@v5
with:
start: npm run start
record: false
- name: Upload build results
uses: actions/upload-artifact@v4
with:
name: build
path: out