Skip to content

Merge pull request #1238 from caiocampos/dependabot/npm_and_yarn/back… #555

Merge pull request #1238 from caiocampos/dependabot/npm_and_yarn/back…

Merge pull request #1238 from caiocampos/dependabot/npm_and_yarn/back… #555

Workflow file for this run

name: Deploy Back-end
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
working-directory: ./back
run: npm install
- name: Build
working-directory: ./back
run: npm run build:full --if-present
- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: dist
folder: back/dist