Skip to content

Merge pull request #150 from daneedev/dependabot/npm_and_yarn/express… #88

Merge pull request #150 from daneedev/dependabot/npm_and_yarn/express…

Merge pull request #150 from daneedev/dependabot/npm_and_yarn/express… #88

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: "Update server"
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
update:
runs-on: [self-hosted, main]
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Stash current code
run: git stash
- name: Get new code
run: git pull origin main
- name: Stop DaneeCloud
run: pm2 stop daneecloud
- name: Install NPM Packages
run: npm i
- name: Start DaneeCloud
run: pm2 start daneecloud