Created
June 7, 2023 10:52
-
-
Save crazyoptimist/6ec0f24d1b072aa299059ace61b68f0d to your computer and use it in GitHub Desktop.
Build SPA in GHA
This file contains hidden or 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
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