-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (43 loc) · 1.04 KB
/
distribute.yaml
File metadata and controls
52 lines (43 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Distribute
on:
release:
types:
- released
- prereleased
jobs:
package:
uses: ./.github/workflows/build.yaml
distribute-python:
runs-on: ubuntu-latest
needs: package
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
name: python
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
distribute-js:
runs-on: ubuntu-latest
needs: package
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
name: js
path: dist
- uses: actions/setup-node@v6
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Update npm to the latest version
run: npm install -g npm@latest
- name: Check npm version
run: npm -v
- name: Publish to npm
run: npm publish dist/* --provenance --access public