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 11name : Core NPM publish
22
33on :
4- push :
5- branches :
6- - main
7- paths :
8- - packages/core/**
9- workflow_dispatch :
4+ release :
5+ types : [published]
106
117jobs :
128 core-publish :
1915 - run : yarn compile
2016 name : Compile smart contracts
2117 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 }}
2224 - uses : JS-DevTools/npm-publish@v1
2325 with :
2426 package : ./packages/core/package.json
Original file line number Diff line number Diff line change 11name : Node.js SDK NPM publish
22
33on :
4- push :
5- branches :
6- - main
7- paths :
8- - packages/sdk/typescript/human-protocol-sdk/**
9- workflow_dispatch :
4+ release :
5+ types : [published]
106
117jobs :
128 node-sdk-publish :
1612 - uses : actions/checkout@v3
1713 - run : yarn --ignore-scripts
1814 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 }}
1921 - uses : JS-DevTools/npm-publish@v1
2022 name : Publish
2123 with :
Original file line number Diff line number Diff line change 11name : Python SDK publish
22
33on :
4- push :
5- branches :
6- - main
7- paths :
8- - packages/sdk/python/**
9- workflow_dispatch :
4+ release :
5+ types : [published]
106
117jobs :
128 publish-python-sdk :
2521 run : |
2622 python -m pip install --upgrade pip
2723 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 }}"
2831 - name : Build and publish
2932 working-directory : ./packages/sdk/python
3033 env :
Original file line number Diff line number Diff line change 66 - main
77 paths :
88 - packages/sdk/typescript/subgraph/**
9- workflow_dispatch :
109
1110jobs :
1211 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 33
44setuptools .setup (
55 name = "human-protocol-sdk" ,
6- version = "0.0.6" ,
76 author = "HUMAN Protocol" ,
87 description = "A python library to launch escrow contracts to the HUMAN network." ,
98 url = "https://github.com/humanprotocol/human-protocol/packages/sdk/python" ,
You can’t perform that action at this time.
0 commit comments