-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (35 loc) · 945 Bytes
/
deploy-core.yml
File metadata and controls
36 lines (35 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Core Deployment
on:
push:
branches:
- master
paths:
- 'core/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.15
uses: actions/setup-node@v2
with:
node-version: 14.15
- name: Install dependencies
working-directory: ./core
run: yarn install
- name: Run production build
working-directory: ./core
run: yarn run build
- name: Push to NPM
working-directory: ./core
run: |
npm version "v1.0.${GITHUB_RUN_NUMBER}"
npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Ping Discord on failure
if: ${{ failure() }}
uses: rjstone/discord-webhook-notify@v1
with:
webhookUrl: ${{ secrets.WEBHOOK_URL_MERGE_FAILURE }}
details: 'express-react-pdf merge workflow failed!'