File tree 4 files changed +40
-11
lines changed
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
+
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
1
# This workflows will upload a Python Package using Twine when a release is created
2
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
3
4
- name : Release Package
4
+ name : Publish Python
5
5
6
6
on :
7
7
release :
8
- types :
9
- - published
8
+ types : [published]
10
9
11
10
jobs :
12
11
release-package :
@@ -15,14 +14,14 @@ jobs:
15
14
- uses : actions/checkout@v2
16
15
- uses : actions/setup-node@v2-beta
17
16
with :
18
- node-version : " 14"
17
+ node-version : " 14.x "
19
18
- name : Set up Python
20
19
uses : actions/setup-python@v1
21
20
with :
22
21
python-version : " 3.x"
23
22
- name : Install latest NPM
24
23
run : |
25
- npm install -g npm@latest
24
+ npm install -g npm@7.22.0
26
25
npm --version
27
26
- name : Install dependencies
28
27
run : |
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ jobs:
18
18
- uses : nanasess/setup-chromedriver@master
19
19
- uses : actions/setup-node@v2-beta
20
20
with :
21
- node-version : " 14"
21
+ node-version : " 14.x "
22
22
- name : Use Latest Python
23
23
uses : actions/setup-python@v2
24
24
with :
25
25
python-version : 3.9
26
26
- name : Install latest NPM
27
27
run : |
28
- npm install -g npm@latest
28
+ npm install -g npm@7.22.0
29
29
npm --version
30
30
- name : Install Python Dependencies
31
31
run : pip install -r requirements/test-run.txt
49
49
python-version : ${{ matrix.python-version }}
50
50
- name : Install latest NPM
51
51
run : |
52
- npm install -g npm@latest
52
+ npm install -g npm@7.22.0
53
53
npm --version
54
54
- name : Install Python Dependencies
55
55
run : pip install -r requirements/test-run.txt
64
64
node-version : " 14"
65
65
- name : Install latest NPM
66
66
run : |
67
- npm install -g npm@latest
67
+ npm install -g npm@7.22.0
68
68
npm --version
69
69
- name : Test Javascript
70
70
working-directory : ./src/client
96
96
python-version : 3.9
97
97
- name : Install latest NPM
98
98
run : |
99
- npm install -g npm@latest
99
+ npm install -g npm@7.22.0
100
100
npm --version
101
101
- name : Install Python Dependencies
102
102
run : |
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"build" : " snowpack build" ,
16
16
"format" : " npm --workspaces run format" ,
17
- "test" : " npm --workspaces test"
17
+ "test" : " npm --workspaces test" ,
18
+ "publish" : " npm --workspaces publish"
18
19
},
19
20
"version" : " 0.32.0" ,
20
21
"workspaces" : [
You can’t perform that action at this time.
0 commit comments