@@ -87,24 +87,27 @@ jobs:
8787 name : js-doc
8888 path : docs/docs/typescript/api
8989 retention-days : 1
90- - uses : JS-DevTools/npm-publish@v1
91- name : Publish Package to NPM
92- with :
93- package : " sdk-dist/typescript/package.json"
94- token : ${{ secrets.npm_token }}
95- access : " public"
96- - uses : JS-DevTools/npm-publish@v1
97- name : Publish Package to GitHub Package
98- with :
99- package : " sdk-dist/typescript/package.json"
100- registry : " https://npm.pkg.github.com"
101- token : ${{ secrets.GITHUB_TOKEN }}
102- access : " public"
103- - name : Release umd module
104- uses : softprops/action-gh-release@v1
90+
91+ - uses : healthplace/npmrc-registry-login-action@v1.0
92+ name : Login to NPM registry
93+ with :
94+ scope : ' @etherdata-blockchain'
95+ registry : ' registry.npmjs.org'
96+ auth-token : ${{ secrets.npm_token }}
97+ - name : Publish to npm
98+ run : yarn release
99+ working-directory : sdk-dist/typescript
100+
101+ - uses : healthplace/npmrc-registry-login-action@v1.0
102+ name : Login to GitHub registry
105103 with :
106- files : |
107- ./sdk-dist/typescript/etherdata-sdk.js
104+ scope : ' @etherdata-blockchain'
105+ registry : ' https://npm.pkg.github.com'
106+ auth-token : ${{ secrets.GITHUB_TOKEN }}
107+
108+ - name : Publish to GitHub
109+ run : yarn release
110+ working-directory : sdk-dist/typescript
108111
109112 publish-react-ui-npm :
110113 needs : build
@@ -140,43 +143,43 @@ jobs:
140143 needs : build
141144 runs-on : ubuntu-latest
142145 steps :
143- - uses : actions/checkout@master
144- - name : Set up Python 3.9
145- uses : actions/setup-python@v1
146- with :
147- python-version : 3.9
148- - name : Install dependencies
149- run : pip install -r requirements.txt
150- working-directory : sdk-dist/python
151- - run : python3 generator.py
152- name : Building documentation
153- working-directory : sdk-dist/python
154- - name : Install pypa/build
155- run : >-
156- python -m
157- pip install
158- build
159- --user
160- working-directory : sdk-dist/python
161- - name : Build a binary wheel and a source tarball
162- run : >-
163- python -m
164- build
165- --sdist
166- --wheel
167- --outdir dist/
168- .
169- working-directory : sdk-dist/python
170- - name : Publish distribution 📦 to PyPI
171- if : startsWith(github.ref, 'refs/tags')
172- uses : pypa/gh-action-pypi-publish@master
173- with :
174- password : ${{ secrets.PYPI_API_TOKEN }}
175- packages_dir : sdk-dist/python/dist
176- - uses : actions/upload-artifact@v2
177- with :
178- name : python-doc
179- path : docs/docs/python/api
146+ - uses : actions/checkout@master
147+ - name : Set up Python 3.9
148+ uses : actions/setup-python@v1
149+ with :
150+ python-version : 3.9
151+ - name : Install dependencies
152+ run : pip install -r requirements.txt
153+ working-directory : sdk-dist/python
154+ - run : python3 generator.py
155+ name : Building documentation
156+ working-directory : sdk-dist/python
157+ - name : Install pypa/build
158+ run : >-
159+ python -m
160+ pip install
161+ build
162+ --user
163+ working-directory : sdk-dist/python
164+ - name : Build a binary wheel and a source tarball
165+ run : >-
166+ python -m
167+ build
168+ --sdist
169+ --wheel
170+ --outdir dist/
171+ .
172+ working-directory : sdk-dist/python
173+ - name : Publish distribution 📦 to PyPI
174+ if : startsWith(github.ref, 'refs/tags')
175+ uses : pypa/gh-action-pypi-publish@master
176+ with :
177+ password : ${{ secrets.PYPI_API_TOKEN }}
178+ packages_dir : sdk-dist/python/dist
179+ - uses : actions/upload-artifact@v2
180+ with :
181+ name : python-doc
182+ path : docs/docs/python/api
180183
181184
182185 publish-docs :
0 commit comments