Skip to content

use own axios instance with interceptors #21

use own axios instance with interceptors

use own axios instance with interceptors #21

Workflow file for this run

name: Deploy to production
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node and install dependencies
uses: actions/setup-node@v2
with:
node-version: 18.x
- run: yarn install
- name: Deploy using SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd ~/backoffice
git pull
yarn install
yarn build
pm2 restart backoffice