File tree Expand file tree Collapse file tree 9 files changed +34
-22
lines changed Expand file tree Collapse file tree 9 files changed +34
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : Core NPM publish
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- paths :
8
- - packages/core/**
9
- workflow_dispatch :
4
+ release :
5
+ types : [published]
10
6
11
7
jobs :
12
8
core-publish :
19
15
- run : yarn compile
20
16
name : Compile smart contracts
21
17
working-directory : ./packages/core
18
+ - name : Change core version
19
+ uses : jossef/action-set-json-field@v2
20
+ with :
21
+ file : ./packages/core/package.json
22
+ field : version
23
+ value : ${{ github.event.release.tag_name }}
22
24
- uses : JS-DevTools/npm-publish@v1
23
25
with :
24
26
package : ./packages/core/package.json
Original file line number Diff line number Diff line change 1
1
name : Node.js SDK NPM publish
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- paths :
8
- - packages/sdk/typescript/human-protocol-sdk/**
9
- workflow_dispatch :
4
+ release :
5
+ types : [published]
10
6
11
7
jobs :
12
8
node-sdk-publish :
16
12
- uses : actions/checkout@v3
17
13
- run : yarn --ignore-scripts
18
14
name : Install dependencies
15
+ - name : Change Node.js SDK version
16
+ uses : jossef/action-set-json-field@v2
17
+ with :
18
+ file : ./packages/sdk/typescript/human-protocol-sdk/package.json
19
+ field : version
20
+ value : ${{ github.event.release.tag_name }}
19
21
- uses : JS-DevTools/npm-publish@v1
20
22
name : Publish
21
23
with :
Original file line number Diff line number Diff line change 1
1
name : Python SDK publish
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- paths :
8
- - packages/sdk/python/**
9
- workflow_dispatch :
4
+ release :
5
+ types : [published]
10
6
11
7
jobs :
12
8
publish-python-sdk :
25
21
run : |
26
22
python -m pip install --upgrade pip
27
23
pip install setuptools wheel twine
24
+ - name : Set the relase version
25
+ uses : " DamianReeves/write-file-action@master"
26
+ with :
27
+ path : ./packages/sdk/python/human_protocol_sdk/__init__.py
28
+ write-mode : overwrite
29
+ contents : |
30
+ __version__ = "${{ github.event.release.tag_name }}"
28
31
- name : Build and publish
29
32
working-directory : ./packages/sdk/python
30
33
env :
Original file line number Diff line number Diff line change 6
6
- main
7
7
paths :
8
8
- packages/sdk/typescript/subgraph/**
9
- workflow_dispatch :
10
9
11
10
jobs :
12
11
subgraph :
Original file line number Diff line number Diff line change
1
+ __version__ = "0.0.0"
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ name = " human-protocol-sdk"
3
+ dynamic = [" version" ]
4
+
5
+ [tool .setuptools .dynamic ]
6
+ version = {attr = " human_protocol_sdk.__version__" }
Original file line number Diff line number Diff line change
1
+ [pytest]
2
+ addopts = -p no:warnings --doctest-modules
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
4
4
setuptools .setup (
5
5
name = "human-protocol-sdk" ,
6
- version = "0.0.6" ,
7
6
author = "HUMAN Protocol" ,
8
7
description = "A python library to launch escrow contracts to the HUMAN network." ,
9
8
url = "https://github.com/humanprotocol/human-protocol/packages/sdk/python" ,
You can’t perform that action at this time.
0 commit comments