chore: bundle node binaries (#37)

bundle node binaries
This commit is contained in:
Mert
2026-02-18 17:11:28 +00:00
committed by GitHub
parent 0469dbd3c6
commit 062cb271a2
2 changed files with 5 additions and 8 deletions
+5 -7
View File
@@ -42,7 +42,7 @@ jobs:
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: bindings-${{ matrix.platforms.target }}
path: dist/*.node
path: dist/
if-no-files-found: error
publish:
@@ -61,15 +61,13 @@ jobs:
uses: immich-app/devtools/actions/use-mise@dab18118da6476e8237ac94080fd937983fecd42 # use-mise-action-v1.1.2
- name: Install dependencies
run: pnpm install
- name: Create npm dirs
run: pnpm napi create-npm-dirs
- name: Download all artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
path: artifacts
- name: Move artifacts
run: pnpm napi artifacts
- name: List packages
run: ls -R ./npm
- name: Assemble dist
run: mkdir -p dist && cp artifacts/bindings-*/* dist/
- name: List dist contents
run: ls -R ./dist
- name: Publish
run: pnpm publish --access public --provenance --no-git-checks
-1
View File
@@ -35,7 +35,6 @@
"build": "napi build --platform --release --esm -o dist",
"build:debug": "napi build --platform --esm -o dist",
"build:release": "napi build --platform --release --esm -o dist",
"prepublishOnly": "napi prepublish -t npm --no-gh-release",
"test": "vitest --config test/vitest.config.mjs",
"typecheck": "tsc --noEmit",
"ts:check": "tsc --noEmit",