Skip to content

Commit d31b82e

Browse files
committed
v0.1.0 (#8)
1 parent bc816d4 commit d31b82e

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff 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

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ fix-python-soname
1616
artifacts
1717
build.rs
1818
rust-toolchain.toml
19+
AGENTS.md
1920
CLAUDE.md
2021
Cargo.toml
22+
!index.js
23+
!index.d.ts

0 commit comments

Comments
 (0)