Skip to content

fix: use npm script instead of direct astro cmd #6

fix: use npm script instead of direct astro cmd

fix: use npm script instead of direct astro cmd #6

Workflow file for this run

name: Frontend CI
on:
# Triggers the workflow on push or pull request events but only for the "dev" branch
push:
branches: [ "dev" , "prod"]
pull_request:
branches: [ "dev", "prod" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-frontend:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: install frontend dependencies
run: npm ci
- name: build astro
run: npm run build