Skip to content

chore(deps): lock file maintenance #2108

chore(deps): lock file maintenance

chore(deps): lock file maintenance #2108

Workflow file for this run

name: CI
on:
push: {}
env:
BRANCH_NAME: ${{ github.base_ref || github.ref_name }}
jobs:
lint:
name: "Lint (${{ matrix.component }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
component: [frontend]
include:
- component: frontend
command: pnpm i --frozen-lockfile
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install pnpm
run: npm i -g pnpm
- name: Install dependencies
run: ${{ matrix.command }}
working-directory: ${{ matrix.component }}
- name: Build
run: pnpm lint
working-directory: ${{ matrix.component }}
build:
name: "Build (${{ matrix.component }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
component: [frontend, backend]
include:
- component: frontend
command: pnpm i --frozen-lockfile
- component: backend
command: pnpm i --frozen-lockfile
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install pnpm
run: npm i -g pnpm
- name: Install dependencies
run: ${{ matrix.command }}
working-directory: ${{ matrix.component }}
- name: Create staging .env file
if: ${{ env.BRANCH_NAME == 'dev' && matrix.component == 'frontend' }}
run: echo "NEXT_PUBLIC_STAGING=true" >> .env
working-directory: frontend
- name: Build
run: pnpm build
working-directory: ${{ matrix.component }}