-
Notifications
You must be signed in to change notification settings - Fork 32
45 lines (42 loc) · 1023 Bytes
/
build_library.yml
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
37
38
39
40
41
42
43
44
45
name: build library
on:
push:
branches:
- master
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Cloning repo
-
name: Checkout repo
id: checkout-repo
uses: actions/checkout@v2
with:
repository: green-api/whatsapp-api-client
path: whatsapp-api-client
fetch-depth: 100
# Installing nodejs
-
name: Use Node.js 12.21.0
uses: actions/setup-node@v2
with:
node-version: "12.21.0"
# Installing dependencies
-
name: Install dependencies
run: |
cd whatsapp-api-client
npm install
npm install -g rollup
# Building nodejs and browser libraries
-
name: Building the libraries
run: |
cd whatsapp-api-client
npm run build