Skip to content

Create frontend-build.yml #1

Create frontend-build.yml

Create frontend-build.yml #1

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Build frontend
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
working-directory: /frontend/projects/valtimo/spotler
- run: npm run build
working-directory: /frontend/projects/valtimo/spotler