Skip to content

Instantly share code, notes, and snippets.

@crazyoptimist
Created June 7, 2023 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyoptimist/6ec0f24d1b072aa299059ace61b68f0d to your computer and use it in GitHub Desktop.
Save crazyoptimist/6ec0f24d1b072aa299059ace61b68f0d to your computer and use it in GitHub Desktop.
Build SPA in GHA
name: Build SPA
on:
pull_request:
types: [opened, edited, synchronize, reopened, closed]
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build SPA Project
run: npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment