Skip to content

fix: Fix problems with outdated packages #148

fix: Fix problems with outdated packages

fix: Fix problems with outdated packages #148

Workflow file for this run

name: Node.js CI
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2
with:
version: 7.6.0
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
- run: pnpm install
- name: Lint code
run: pnpm lint
- name: Format code
run: pnpm format
- name: Run tests
run: pnpm test
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: SSH and deploy node app
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ${{ secrets.SSH_BUILD_PATH }}
git fetch --all
git reset --hard origin/master
cd ../..
docker-compose up -d --build discord-music-bot