File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflows will upload a Javscript Package using NPM to npmjs.org when a release is created
2+ # For more information see: https://docs.github.com/en/actions/guides/publishing-nodejs-packages
3+
4+ name : Publish Javascript
5+
6+ on :
7+ release :
8+ types : [published]
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ # Setup .npmrc file to publish to npm
16+ - uses : actions/setup-node@v2
17+ with :
18+ node-version : " 14.x"
19+ registry-url : " https://registry.npmjs.org"
20+ - name : Prepare Release
21+ working-directory : ./src/client
22+ run : |
23+ npm install -g npm@7.22.0
24+ npm install
25+ - name : Publish Release
26+ working-directory : ./src/client
27+ run : npm run publish
28+ env :
29+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTOMATION_TOKEN }}
Original file line number Diff line number Diff line change 1+ # This workflows will upload a Python Package using Twine when a release is created
2+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+ name : Publish Python
5+
6+ on :
7+ release :
8+ types : [published]
9+
10+ jobs :
11+ release-package :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : actions/setup-node@v2-beta
16+ with :
17+ node-version : " 14.x"
18+ - name : Set up Python
19+ uses : actions/setup-python@v1
20+ with :
21+ python-version : " 3.x"
22+ - name : Install latest NPM
23+ run : |
24+ npm install -g npm@7.22.0
25+ npm --version
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install -r requirements/build-pkg.txt
30+ - name : Build and publish
31+ env :
32+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
33+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
34+ run : |
35+ python -m build --sdist --wheel --outdir dist .
36+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments