Skip to content

Commit

Permalink
Add feature branch build
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerstolzenberg committed Feb 24, 2024
1 parent 49d99dd commit e493eb1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/feature-branch-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-main-branch

on:
push:
branches: ["feature/**"]

jobs:
build-dist:
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v4

- uses: jessehouwing/actions-semver-checker@v1
with:
check-minor-version: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

# TODO find a way to configure URL at runtime
- name: Build
run: |
npm run build -- --configuration=production --base-href=/cities-of-europe/

0 comments on commit e493eb1

Please sign in to comment.