File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 29
29
with :
30
30
name : " build"
31
31
path : " dist"
32
+ - name : Upload packed templates artifact
33
+ uses : actions/upload-artifact@v4
34
+ with :
35
+ name : " build-templates"
36
+ path : " templates/packed"
32
37
- name : Upload llama.cpp artifact
33
38
uses : actions/upload-artifact@v4
34
39
with :
@@ -367,6 +372,10 @@ jobs:
367
372
rm -f ./llama/gitRelease.bundle
368
373
mv artifacts/llama.cpp/gitRelease.bundle ./llama/gitRelease.bundle
369
374
375
+ mv artifacts/build-templates templates/packed/
376
+ rm -f ./templates/package.json
377
+ rm -f ./templates/package-lock.json
378
+
370
379
echo "Built binaries:"
371
380
ls llamaBins
372
381
- name : Add "postinstall" script to package.json
@@ -403,6 +412,8 @@ jobs:
403
412
run : |
404
413
cd packages/create-node-llama-cpp
405
414
415
+ echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
416
+
406
417
if [ "$GH_RELEASE_REF" == "refs/heads/beta" ]; then
407
418
npm publish --tag beta
408
419
else
You can’t perform that action at this time.
0 commit comments