File tree 3 files changed +40
-11
lines changed
3 files changed +40
-11
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,17 @@ jobs:
36
36
source .venv/bin/activate
37
37
npm run build
38
38
shell : bash
39
- - name : Generate distribution
39
+ - name : Generate Python distribution
40
40
run : |
41
41
source .venv/bin/activate
42
42
npm run dist
43
- npm pack && mv *.tgz dist/
43
+ shell : bash
44
+ - name : Build npm package
45
+ run : |
46
+ source .venv/bin/activate
47
+ npm pack
48
+ mkdir -p npm-dist
49
+ mv *.tgz npm-dist/
44
50
shell : bash
45
51
- name : Validate distribution
46
52
run : |
50
56
uv pip install "${WHL_FILE}[dev]"
51
57
npm run test
52
58
shell : bash
53
- - name : Upload built distributions
59
+ - name : Upload Python distributions
54
60
uses : actions/upload-artifact@v4
55
61
with :
56
- name : package -distributions
62
+ name : python -distributions
57
63
path : dist/
64
+
65
+ - name : Upload npm package
66
+ uses : actions/upload-artifact@v4
67
+ with :
68
+ name : npm-package
69
+ path : npm-dist/
Original file line number Diff line number Diff line change @@ -23,12 +23,24 @@ jobs:
23
23
steps :
24
24
- name : Checkout code
25
25
uses : actions/checkout@v4
26
- - name : Download built distributions
26
+ - name : Download Python distributions
27
27
uses : actions/download-artifact@v4
28
28
with :
29
- name : package -distributions
29
+ name : python -distributions
30
30
path : dist/
31
31
- name : Publish package distributions to PyPI
32
32
uses : pypa/gh-action-pypi-publish@release/v1
33
33
with :
34
- password : ${{ secrets.PYPI_API_TOKEN }}
34
+ password : ${{ secrets.PYPI_API_TOKEN }}
35
+
36
+ - name : Download npm package
37
+ uses : actions/download-artifact@v4
38
+ with :
39
+ name : npm-package
40
+ path : npm-dist/
41
+ - name : Publish to npm
42
+ run : |
43
+ npm publish npm-dist/*.tgz --access public
44
+ env :
45
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
46
+ shell : bash
Original file line number Diff line number Diff line change @@ -21,13 +21,18 @@ jobs:
21
21
steps :
22
22
- name : Checkout repo
23
23
uses : actions/checkout@v4
24
- - name : Download built distributions
24
+ - name : Download Python distributions
25
25
uses : actions/download-artifact@v4
26
26
with :
27
- name : package -distributions
27
+ name : python -distributions
28
28
path : dist/
29
+ - name : Download npm package
30
+ uses : actions/download-artifact@v4
31
+ with :
32
+ name : npm-package
33
+ path : npm-dist/
29
34
- name : Upload GitHub Release
30
35
uses : ncipollo/release-action@v1
31
36
with :
32
- artifacts : " dist/*.whl,dist/*.tar.gz"
33
- draft : true
37
+ artifacts : " dist/*.whl,dist/*.tar.gz,npm-dist/*.tgz "
38
+ draft : true
You can’t perform that action at this time.
0 commit comments