Merge pull request #213 from orryverducci/dependabot/npm_and_yarn/pos… #546
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
# | |
# Builds the web application | |
# | |
name: Build Web App | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build frontend | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
permissions: | |
actions: read | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Run Astro build | |
run: npm run build |