Skip to content

Merge pull request #4 from Cipscis/eslint-stylistic-migration #27

Merge pull request #4 from Cipscis/eslint-stylistic-migration

Merge pull request #4 from Cipscis/eslint-stylistic-migration #27

name: build-and-deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build
run: |
npm install
npm run build
env:
MODE: production
- name: Test
run: npm test
deploy:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and Build
run: |
npm install
npm run build
env:
MODE: production
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: app