File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -13,28 +13,33 @@ jobs:
1313 distribute-python :
1414 runs-on : ubuntu-latest
1515 needs : package
16+ permissions :
17+ id-token : write
1618 steps :
1719 - uses : actions/download-artifact@v4
1820 with :
1921 name : python
2022 path : dist
2123
22- - run : pip install "twine>=6.1.0" "packaging>=24.2"
23-
24- - run : twine upload dist/*
24+ - name : Publish to PyPI
25+ uses : pypa/gh-action-pypi-publish@release/v1
26+ with :
27+ packages-dir : dist/
2528
2629 distribute-js :
2730 runs-on : ubuntu-latest
2831 needs : package
32+ permissions :
33+ id-token : write
2934 steps :
3035 - uses : actions/download-artifact@v4
3136 with :
3237 name : js
3338 path : dist
3439
35- - uses : actions/setup-node@v3
40+ - uses : actions/setup-node@v4
3641 with :
37- node-version : 16
42+ node-version : 20
3843 registry-url : " https://registry.npmjs.org"
3944
40- - run : npm publish dist/*
45+ - run : npm publish dist/ --provenance --access public
You can’t perform that action at this time.
0 commit comments