Skip to content

Bump path-to-regexp and express in /server #1247

Bump path-to-regexp and express in /server

Bump path-to-regexp and express in /server #1247

Workflow file for this run

name: main
on:
push:
branches:
- '*'
pull_request:
branches:
- master
- prod
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 21.4.0
- name: Setup Npm
run: npm install -g [email protected]
- name: Install client dependencies
run: cd client && npm install && cd ..
- name: Install server dependencies
run: cd server && npm install && cd ..
- name: Build client
run: cd client && npm run build && cd ..
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master' || github.event_name == 'push' && github.ref == 'refs/heads/master' || github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'prod' || github.event_name == 'push' && github.ref == 'refs/heads/prod' }}
name: Frontend Tests
run: cd client && npm run test && cd ..
deploy:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/prod' }}
runs-on: ubuntu-latest
needs: build_test
steps:
- name: Deploy to Production
uses: appleboy/[email protected]
with:
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
bash ./deploy.sh