File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,10 @@ jobs:
388388 name : Publish
389389 runs-on : ubuntu-latest
390390 environment : npm
391+ permissions :
392+ contents : write
393+ id-token : write
394+ if : contains(github.ref, 'main')
391395 needs :
392396 - test-macOS-windows-binding
393397 - test-linux-binding
@@ -440,11 +444,9 @@ jobs:
440444 shell : bash
441445 - name : Update npm
442446 run : npm install -g npm@latest
443- - name : Pack
444- if : ${{ !contains(github.ref, 'main') }}
445- run : npm pack
446447 - name : Publish
447- if : contains(github.ref, 'main')
448+ env :
449+ GITHUB_TOKEN : ${{ github.token }}
448450 run : |
449451 if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
450452 then
Original file line number Diff line number Diff line change @@ -16,5 +16,8 @@ fix-python-soname
1616artifacts
1717build.rs
1818rust-toolchain.toml
19+ AGENTS.md
1920CLAUDE.md
2021Cargo.toml
22+ ! index.js
23+ ! index.d.ts
You can’t perform that action at this time.
0 commit comments