Browse Source

chore: fix bin path, add author, use token-based npm publish

Tobi Lutke 3 months ago
parent
commit
00ff084fd9
2 changed files with 5 additions and 3 deletions
  1. 3 2
      .github/workflows/publish.yml
  2. 2 1
      package.json

+ 3 - 2
.github/workflows/publish.yml

@@ -10,7 +10,6 @@ jobs:
 
     permissions:
       contents: write
-      id-token: write
 
     steps:
       - uses: actions/checkout@v4
@@ -30,7 +29,9 @@ jobs:
           node-version: 22
           registry-url: https://registry.npmjs.org
 
-      - run: npm publish --provenance --access public
+      - run: npm publish --access public
+        env:
+          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
 
       - name: Create GitHub Release
         env:

+ 2 - 1
package.json

@@ -4,7 +4,7 @@
   "description": "Query Markup Documents - On-device hybrid search for markdown files with BM25, vector search, and LLM reranking",
   "type": "module",
   "bin": {
-    "qmd": "./qmd"
+    "qmd": "qmd"
   },
   "files": [
     "src/**/*.ts",
@@ -76,5 +76,6 @@
     "local-ai",
     "llm"
   ],
+  "author": "Tobi Lutke <tobi@lutke.com>",
   "license": "MIT"
 }