Merge pull request #17 from Noesis/dependabot/npm_and_yarn/multi-a9f8… #107
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: CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-ftp: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies and build | |
uses: actions/setup-node@v1 | |
- run: npm install | |
- run: npm run deploy --if-present | |
env: | |
FTP_HOST: ${{ secrets.ftp_host }} | |
FTP_REMOTE: ${{ secrets.ftp_remote }} | |
FTP_USER: ${{ secrets.ftp_user }} | |
FTP_PASSWORD: ${{ secrets.ftp_passwd }} |