-
Notifications
You must be signed in to change notification settings - Fork 80
39 lines (33 loc) · 903 Bytes
/
abi.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
name: DeFi
on:
push:
branches:
- 'master'
# TODO: Remove before merging
- 'shah/abi-gh-action'
workflow_dispatch:
concurrency:
cancel-in-progress: true
group: ${{ github.ref_name }}
jobs:
abi-gen:
name: "Generate and publish ABI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "yarn"
cache-dependency-path: contracts/yarn.lock
- run: yarn install --frozen-lockfile
working-directory: ./contracts
- name: "Generate ABI files"
run: (yarn run abi:generate) && (yarn run abi:dist)
env:
CONTRACT_SIZE: true
working-directory: ./contracts
- name: "Publish"
run: npm publish --access public
working-directory: ./contracts/dist