File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed
Expand file tree Collapse file tree 2 files changed +23
-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
@@ -455,3 +457,17 @@ jobs:
455457 else
456458 echo "Not a release, skipping publish"
457459 fi
460+ - name : Collect npm logs
461+ if : always()
462+ run : |
463+ mkdir -p npm-logs
464+ if [ -d "$HOME/.npm/_logs" ]; then
465+ cp -a "$HOME/.npm/_logs/." npm-logs/
466+ fi
467+ - name : Upload npm logs
468+ if : always()
469+ uses : actions/upload-artifact@v4
470+ with :
471+ name : npm-logs
472+ path : npm-logs
473+ if-no-files-found : ignore
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