NPM packages update #70
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: 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 |