Add npm install in deploy command #66
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
name: AgensGraphViewer build | |
on: | |
push: | |
branches: [ main, testing-branch ] | |
pull_request: | |
branches: [ main, testing-branch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies for backend | |
run: | | |
cd backend | |
npm ci | |
- name: Build backend | |
run: | | |
cd backend | |
npm run build | |
- name: Install dependencies for frontend | |
run: | | |
cd frontend | |
npm ci | |
- name: Build frontend | |
run: | | |
cd frontend | |
npm run build | |
env: | |
CI: false |