Merge pull request #150 from daneedev/dependabot/npm_and_yarn/express… #88
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
# 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 |