Skip to content

feat(qf): revise qf notices #246

feat(qf): revise qf notices

feat(qf): revise qf notices #246

Workflow file for this run

name: Deployment
on:
pull_request:
branches:
- master
- develop
- stage
types:
- closed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MATTERS_SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
jobs:
build_and_deploy:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Node.js
uses: actions/setup-node@v2.1.2
with:
node-version: '18'
- name: Cache Dependencies
id: cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci
- name: Test
run: npm run lint
- name: Build
run: npm run build
# === `develop` branch ===
- name: Upload (devlop)
if: github.base_ref == 'develop'
run: npm run upload:dev
# === `master` branch ===
- name: Upload (production)
if: github.base_ref == 'master'
run: npm run upload:prod
- name: Slack Notification
if: always()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: matters-email
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took