Skip to content

NPM packages update #70

NPM packages update

NPM packages update #70

Workflow file for this run

name: Dunbar CMS Deploy
on:
push:
branches:
main
pull_request:
branches:
main
jobs:
deploy:
# Deploy to newprd01 with SSH
runs-on: [self-hosted, vlcdhp02]
strategy:
matrix:
node-version: [21]
steps:
- uses: actions/checkout@master
- run: |
if [[ ! -e /srv/node/logs/dunbarcms.txt ]]; then
mkdir -p /srv/node/logs
touch /srv/node/logs/dunbarcms.txt
fi
cd /srv/node/dunbar-cms/
pm2 stop dla_cms
git stash
git pull
npm install
pm2 start -i max bin/dla_cms.js