Skip to content

Commit

Permalink
fix: include templates in npm package (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgd authored May 19, 2024
1 parent d6a0f43 commit ba03ca9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
with:
name: "build"
path: "dist"
- name: Upload packed templates artifact
uses: actions/upload-artifact@v4
with:
name: "build-templates"
path: "templates/packed"
- name: Upload llama.cpp artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -367,6 +372,10 @@ jobs:
rm -f ./llama/gitRelease.bundle
mv artifacts/llama.cpp/gitRelease.bundle ./llama/gitRelease.bundle
mv artifacts/build-templates templates/packed/
rm -f ./templates/package.json
rm -f ./templates/package-lock.json
echo "Built binaries:"
ls llamaBins
- name: Add "postinstall" script to package.json
Expand Down Expand Up @@ -403,6 +412,8 @@ jobs:
run: |
cd packages/create-node-llama-cpp
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
if [ "$GH_RELEASE_REF" == "refs/heads/beta" ]; then
npm publish --tag beta
else
Expand Down

0 comments on commit ba03ca9

Please sign in to comment.