tech: replace constructors by inject method (#72) #19
Workflow file for this run
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: Node.js CD - Preview | |
on: | |
push: | |
branches: [develop] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: appleboy/ssh-action@master | |
name: Deploy preview on VPS | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
passphrase: ${{ secrets.SERVER_PASSPHRASE }} | |
port: 22 | |
script: | | |
export PATH="$PATH:/home/reginald/.nvm/versions/node/v16.16.0/bin/" | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
nvm use --lts | |
cd ~/dev/repos/w3-bestiary/preview/w3-bestiary-front | |
git checkout develop | |
git fetch --all | |
git reset --hard origin/develop | |
npm ci | |
npm run build:preview |