bigbuffet-rw/.github/workflows/pl-api.yaml
marcin mikołajczak 006980cb9d workflow workaround?
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-10-29 21:22:09 +01:00

41 lines
850 B
YAML

name: pl-api CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
name: Test for a successful build
strategy:
matrix:
node-version: [21.x]
steps:
- name: Install system dependencies
run: sudo apt install -y unzip
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
working-directory: ./packages/pl-api
run: yarn install --ignore-scripts
- name: Lint
working-directory: ./packages/pl-api
run: yarn lint
- name: Build
env:
NODE_ENV: production
working-directory: ./packages/pl-api
run: yarn build