Skip to content

Merge pull request #1930 from caiocampos/dependabot/npm_and_yarn/type… #414

Merge pull request #1930 from caiocampos/dependabot/npm_and_yarn/type…

Merge pull request #1930 from caiocampos/dependabot/npm_and_yarn/type… #414

Workflow file for this run

name: Deploy
on:
push:
branches: [ ng-app ]
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
run: npm install --legacy-peer-deps
- name: Build
env:
REACT_APP_API_URL: ${{ secrets.REACT_APP_API_URL }}
run: npx ng build --configuration production --base-href /
- name: Adjustment
run: |
cd dist/github-home-app
cp index.html 404.html
- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: master
folder: dist/github-home-app