File tree Expand file tree Collapse file tree 4 files changed +40
-11
lines changed Expand file tree Collapse file tree 4 files changed +40
-11
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 Python
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 11# This workflows will upload a Python Package using Twine when a release is created
22# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33
4- name : Release Package
4+ name : Publish Python
55
66on :
77 release :
8- types :
9- - published
8+ types : [published]
109
1110jobs :
1211 release-package :
@@ -15,14 +14,14 @@ jobs:
1514 - uses : actions/checkout@v2
1615 - uses : actions/setup-node@v2-beta
1716 with :
18- node-version : " 14"
17+ node-version : " 14.x "
1918 - name : Set up Python
2019 uses : actions/setup-python@v1
2120 with :
2221 python-version : " 3.x"
2322 - name : Install latest NPM
2423 run : |
25- npm install -g npm@latest
24+ npm install -g npm@7.22.0
2625 npm --version
2726 - name : Install dependencies
2827 run : |
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ jobs:
1818 - uses : nanasess/setup-chromedriver@master
1919 - uses : actions/setup-node@v2-beta
2020 with :
21- node-version : " 14"
21+ node-version : " 14.x "
2222 - name : Use Latest Python
2323 uses : actions/setup-python@v2
2424 with :
2525 python-version : 3.9
2626 - name : Install latest NPM
2727 run : |
28- npm install -g npm@latest
28+ npm install -g npm@7.22.0
2929 npm --version
3030 - name : Install Python Dependencies
3131 run : pip install -r requirements/test-run.txt
4949 python-version : ${{ matrix.python-version }}
5050 - name : Install latest NPM
5151 run : |
52- npm install -g npm@latest
52+ npm install -g npm@7.22.0
5353 npm --version
5454 - name : Install Python Dependencies
5555 run : pip install -r requirements/test-run.txt
6464 node-version : " 14"
6565 - name : Install latest NPM
6666 run : |
67- npm install -g npm@latest
67+ npm install -g npm@7.22.0
6868 npm --version
6969 - name : Test Javascript
7070 working-directory : ./src/client
9696 python-version : 3.9
9797 - name : Install latest NPM
9898 run : |
99- npm install -g npm@latest
99+ npm install -g npm@7.22.0
100100 npm --version
101101 - name : Install Python Dependencies
102102 run : |
Original file line number Diff line number Diff line change 1414 "scripts" : {
1515 "build" : " snowpack build" ,
1616 "format" : " npm --workspaces run format" ,
17- "test" : " npm --workspaces test"
17+ "test" : " npm --workspaces test" ,
18+ "publish" : " npm --workspaces publish"
1819 },
1920 "version" : " 0.32.0" ,
2021 "workspaces" : [
You can’t perform that action at this time.
0 commit comments