Skip to content

[Snyk] Fix for 1 vulnerabilities #29

[Snyk] Fix for 1 vulnerabilities

[Snyk] Fix for 1 vulnerabilities #29

Workflow file for this run

name: Node.js CI/CD
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
heroku-app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_api-key: ${{ secrets.HEROKU_API_KEY }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}