Skip to content

Commit

Permalink
Merge build
Browse files Browse the repository at this point in the history
  • Loading branch information
Emaro committed Feb 9, 2024
1 parent ee3f3f6 commit 14c8b19
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ on:
branches: [ "main" ]

jobs:
build-lib:
build:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./lib

strategy:
matrix:
node-version: [20.x]
Expand All @@ -29,31 +25,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: lib/package-lock.json

- run: npm ci
working-directory: ./lib
- run: npm run build --if-present
working-directory: ./lib

build-app:
needs: build-lib
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./app

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: app/package-lock.json
- run: npm ci
working-directory: ./app
- run: npm start
working-directory: ./app

0 comments on commit 14c8b19

Please sign in to comment.