Remove root export from package #35
Workflow file for this run
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: | |
push: | |
branches: [ "*" ] | |
paths: | |
- "*.json" | |
- "package-lock.json" | |
- "src/**" | |
- "webpack/**" | |
- "docker/**" | |
- ".github/workflows/build.yml" | |
pull_request: | |
branches: [ "main" ] | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build with Node.js | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Build the LDWizard | |
run: | | |
npm run build --omit=dev | |
- name: Run the ldwizard-build script on default config | |
run: | | |
npm exec ldwizard-build webpack/runtimeConfig.ts | |
docker: | |
name: Build Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: | | |
docker build . -f ./docker/Dockerfile -t ldwizard --build-arg CONFIG_FILE=webpack/runtimeConfig.ts |