forked from MVPWorkshop/filecoin-solidity-library
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 991 Bytes
/
publish-and-use.yaml
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
name: "Publish & use NPM package"
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: |
yarn install
make install_solc_linux
- name: Compile contract file
run: make
# - uses: JS-DevTools/npm-publish@v3
# with:
# token: ${{ secrets.NPM_TOKEN }}
lib-install:
runs-on: ubuntu-latest
needs: ["publish"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Checkout repo
uses: actions/checkout@main
with:
submodules: "true"
- name: Install from NPM registry
run: |
cd .github/test-api-use
yarn add filecoin-solidity-api
yarn install
npx hardhat compile