diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 220f62b..0014c1f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -61,13 +61,15 @@ 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 to dist + - name: Move artifacts run: pnpm napi artifacts - - name: List dist contents - run: ls -R ./dist + - name: List packages + run: ls -R ./npm - name: Publish run: pnpm publish --access public --provenance --no-git-checks diff --git a/package.json b/package.json index 03f8485..8364684 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "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": "pnpm run build:release", + "prepublishOnly": "napi prepublish -t npm --no-gh-release", "test": "vitest --config test/vitest.config.mjs", "typecheck": "tsc --noEmit", "ts:check": "tsc --noEmit",