@@ -534,7 +534,7 @@ jobs:
534534 id : set-npm-url
535535 run : |
536536 if [ -f .semanticRelease.npmPackage.deployedVersion.txt ]; then
537- echo "npm-url=https://www.npmjs.com/package/node-llama-cpp/v/$(cat .semanticRelease.npmPackage.deployedVersion.txt)" >> $GITHUB_OUTPUT
537+ echo "npm-url=https://www.npmjs.com/package/@aibrow/ node-llama-cpp/v/$(cat .semanticRelease.npmPackage.deployedVersion.txt)" >> $GITHUB_OUTPUT
538538 fi
539539 - name : Set package version to GITHUB_OUTPUT
540540 id : set-package-version
@@ -663,172 +663,172 @@ jobs:
663663
664664 shopt -u nullglob
665665
666- update-documentation-website :
667- name : Update documentation website
668- if : |
669- always() &&
670- github.event_name == 'push' &&
671- github.ref == 'refs/heads/master' &&
672- needs.build.result == 'success' &&
673- needs.resolve-next-release.result == 'success' &&
674- needs.resolve-next-release.outputs.next-version != '' &&
675- needs.resolve-next-release.outputs.next-version != 'false' && (
676- needs.release.result == 'skipped' || (
677- needs.release.result == 'success' &&
678- needs.release.outputs.package-version != ''
679- )
680- )
681- runs-on : ubuntu-latest
682- concurrency : update-documentation-website-${{ github.ref }}
683- environment :
684- name : Documentation website
685- url : " https://node-llama-cpp.withcat.ai"
686- permissions :
687- pages : write
688- id-token : write
689- contents : read
690- needs :
691- - build
692- - resolve-next-release
693- - release
694-
695- # All steps are copied to `update-documentation-website-no-release` job
696- # Can be replaced with YAML anchors when this will be supported by GitHub Actions:
697- # https://github.com/actions/runner/issues/1182#issuecomment-2317953582
698- steps :
699- - uses : actions/checkout@v4
700- with :
701- lfs : true
702- fetch-depth : 0
703- fetch-tags : true
704- - uses : actions/setup-node@v4
705- with :
706- node-version : " 20"
707- - name : Install modules
708- run : npm ci
709- - uses : actions/download-artifact@v4
710- with :
711- path : artifacts
712- - name : Move artifacts
713- run : |
714- mv artifacts/build dist/
666+ # update-documentation-website:
667+ # name: Update documentation website
668+ # if: |
669+ # always() &&
670+ # github.event_name == 'push' &&
671+ # github.ref == 'refs/heads/master' &&
672+ # needs.build.result == 'success' &&
673+ # needs.resolve-next-release.result == 'success' &&
674+ # needs.resolve-next-release.outputs.next-version != '' &&
675+ # needs.resolve-next-release.outputs.next-version != 'false' && (
676+ # needs.release.result == 'skipped' || (
677+ # needs.release.result == 'success' &&
678+ # needs.release.outputs.package-version != ''
679+ # )
680+ # )
681+ # runs-on: ubuntu-latest
682+ # concurrency: update-documentation-website-${{ github.ref }}
683+ # environment:
684+ # name: Documentation website
685+ # url: "https://node-llama-cpp.withcat.ai"
686+ # permissions:
687+ # pages: write
688+ # id-token: write
689+ # contents: read
690+ # needs:
691+ # - build
692+ # - resolve-next-release
693+ # - release
694+
695+ # # All steps are copied to `update-documentation-website-no-release` job
696+ # # Can be replaced with YAML anchors when this will be supported by GitHub Actions:
697+ # # https://github.com/actions/runner/issues/1182#issuecomment-2317953582
698+ # steps:
699+ # - uses: actions/checkout@v4
700+ # with:
701+ # lfs: true
702+ # fetch-depth: 0
703+ # fetch-tags: true
704+ # - uses: actions/setup-node@v4
705+ # with:
706+ # node-version: "20"
707+ # - name: Install modules
708+ # run: npm ci
709+ # - uses: actions/download-artifact@v4
710+ # with:
711+ # path: artifacts
712+ # - name: Move artifacts
713+ # run: |
714+ # mv artifacts/build dist/
715715
716- cp -r artifacts/llama.cpp/llama.cpp llama/llama.cpp
716+ # cp -r artifacts/llama.cpp/llama.cpp llama/llama.cpp
717717
718- rm -f ./llama/binariesGithubRelease.json
719- mv artifacts/llama.cpp/binariesGithubRelease.json ./llama/binariesGithubRelease.json
718+ # rm -f ./llama/binariesGithubRelease.json
719+ # mv artifacts/llama.cpp/binariesGithubRelease.json ./llama/binariesGithubRelease.json
720720
721- rm -f ./llama/llama.cpp.info.json
722- mv artifacts/llama.cpp/llama.cpp.info.json ./llama/llama.cpp.info.json
723- - name : Resolve docs version
724- env :
725- RELEASE_VERSION : ${{ needs.release.outputs.package-version || needs.resolve-next-release.outputs.next-version }}
726- run : |
727- if [ "$RELEASE_VERSION" == "false" ]; then
728- npx --no vite-node ./scripts/resolveLatestReleaseVersion.ts --saveVersionToFile ./docsVersion.txt
729- else
730- echo "$RELEASE_VERSION" > ./docsVersion.txt
731- fi
732- - name : Generate docs with updated version
733- env :
734- DOCS_URL_BASE : " /"
735- run : |
736- export DOCS_PACKAGE_VERSION="$(cat ./docsVersion.txt)"
737- echo "Package version: $DOCS_PACKAGE_VERSION"
721+ # rm -f ./llama/llama.cpp.info.json
722+ # mv artifacts/llama.cpp/llama.cpp.info.json ./llama/llama.cpp.info.json
723+ # - name: Resolve docs version
724+ # env:
725+ # RELEASE_VERSION: ${{ needs.release.outputs.package-version || needs.resolve-next-release.outputs.next-version }}
726+ # run: |
727+ # if [ "$RELEASE_VERSION" == "false" ]; then
728+ # npx --no vite-node ./scripts/resolveLatestReleaseVersion.ts --saveVersionToFile ./docsVersion.txt
729+ # else
730+ # echo "$RELEASE_VERSION" > ./docsVersion.txt
731+ # fi
732+ # - name: Generate docs with updated version
733+ # env:
734+ # DOCS_URL_BASE: "/"
735+ # run: |
736+ # export DOCS_PACKAGE_VERSION="$(cat ./docsVersion.txt)"
737+ # echo "Package version: $DOCS_PACKAGE_VERSION"
738738
739- npm run docs:build
740- - name : Upload docs to GitHub Pages
741- uses : actions/upload-pages-artifact@v3
742- with :
743- name : pages-docs
744- path : docs-site
745- - name : Deploy docs to GitHub Pages
746- uses : actions/deploy-pages@v4
747- with :
748- artifact_name : pages-docs
749- - name : Update feed
750- run : |
751- curl -X POST "https://pubsubhubbub.appspot.com/" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "hub.mode=publish" --data-urlencode "hub.url=https://node-llama-cpp.withcat.ai/blog/feed.atom"
752-
753- update-documentation-website-no-release :
754- name : Update documentation website - no version release
755- if : |
756- always() &&
757- github.event_name == 'push' &&
758- github.ref == 'refs/heads/master' &&
759- needs.build.result == 'success' &&
760- needs.resolve-next-release.result == 'success' &&
761- needs.resolve-next-release.outputs.next-version == 'false'
762- runs-on : ubuntu-latest
763- concurrency : update-documentation-website-${{ github.ref }}
764- environment :
765- name : Documentation website
766- url : " https://node-llama-cpp.withcat.ai"
767- permissions :
768- pages : write
769- id-token : write
770- contents : read
771- needs :
772- - build
773- - resolve-next-release
774-
775- # All steps are copied to `update-documentation-website` job
776- # Can be replaced with YAML anchors when this will be supported by GitHub Actions:
777- # https://github.com/actions/runner/issues/1182#issuecomment-2317953582
778- steps :
779- - uses : actions/checkout@v4
780- with :
781- lfs : true
782- fetch-depth : 0
783- fetch-tags : true
784- - uses : actions/setup-node@v4
785- with :
786- node-version : " 20"
787- - name : Install modules
788- run : npm ci
789- - uses : actions/download-artifact@v4
790- with :
791- path : artifacts
792- - name : Move artifacts
793- run : |
794- mv artifacts/build dist/
739+ # npm run docs:build
740+ # - name: Upload docs to GitHub Pages
741+ # uses: actions/upload-pages-artifact@v3
742+ # with:
743+ # name: pages-docs
744+ # path: docs-site
745+ # - name: Deploy docs to GitHub Pages
746+ # uses: actions/deploy-pages@v4
747+ # with:
748+ # artifact_name: pages-docs
749+ # - name: Update feed
750+ # run: |
751+ # curl -X POST "https://pubsubhubbub.appspot.com/" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "hub.mode=publish" --data-urlencode "hub.url=https://node-llama-cpp.withcat.ai/blog/feed.atom"
752+
753+ # update-documentation-website-no-release:
754+ # name: Update documentation website - no version release
755+ # if: |
756+ # always() &&
757+ # github.event_name == 'push' &&
758+ # github.ref == 'refs/heads/master' &&
759+ # needs.build.result == 'success' &&
760+ # needs.resolve-next-release.result == 'success' &&
761+ # needs.resolve-next-release.outputs.next-version == 'false'
762+ # runs-on: ubuntu-latest
763+ # concurrency: update-documentation-website-${{ github.ref }}
764+ # environment:
765+ # name: Documentation website
766+ # url: "https://node-llama-cpp.withcat.ai"
767+ # permissions:
768+ # pages: write
769+ # id-token: write
770+ # contents: read
771+ # needs:
772+ # - build
773+ # - resolve-next-release
774+
775+ # # All steps are copied to `update-documentation-website` job
776+ # # Can be replaced with YAML anchors when this will be supported by GitHub Actions:
777+ # # https://github.com/actions/runner/issues/1182#issuecomment-2317953582
778+ # steps:
779+ # - uses: actions/checkout@v4
780+ # with:
781+ # lfs: true
782+ # fetch-depth: 0
783+ # fetch-tags: true
784+ # - uses: actions/setup-node@v4
785+ # with:
786+ # node-version: "20"
787+ # - name: Install modules
788+ # run: npm ci
789+ # - uses: actions/download-artifact@v4
790+ # with:
791+ # path: artifacts
792+ # - name: Move artifacts
793+ # run: |
794+ # mv artifacts/build dist/
795795
796- cp -r artifacts/llama.cpp/llama.cpp llama/llama.cpp
796+ # cp -r artifacts/llama.cpp/llama.cpp llama/llama.cpp
797797
798- rm -f ./llama/binariesGithubRelease.json
799- mv artifacts/llama.cpp/binariesGithubRelease.json ./llama/binariesGithubRelease.json
798+ # rm -f ./llama/binariesGithubRelease.json
799+ # mv artifacts/llama.cpp/binariesGithubRelease.json ./llama/binariesGithubRelease.json
800800
801- rm -f ./llama/llama.cpp.info.json
802- mv artifacts/llama.cpp/llama.cpp.info.json ./llama/llama.cpp.info.json
803- - name : Resolve docs version
804- env :
805- RELEASE_VERSION : ${{ needs.release.outputs.package-version || needs.resolve-next-release.outputs.next-version }}
806- run : |
807- if [ "$RELEASE_VERSION" == "false" ]; then
808- npx --no vite-node ./scripts/resolveLatestReleaseVersion.ts --saveVersionToFile ./docsVersion.txt
809- else
810- echo "$RELEASE_VERSION" > ./docsVersion.txt
811- fi
812- - name : Generate docs with updated version
813- env :
814- DOCS_URL_BASE : " /"
815- run : |
816- export DOCS_PACKAGE_VERSION="$(cat ./docsVersion.txt)"
817- echo "Package version: $DOCS_PACKAGE_VERSION"
801+ # rm -f ./llama/llama.cpp.info.json
802+ # mv artifacts/llama.cpp/llama.cpp.info.json ./llama/llama.cpp.info.json
803+ # - name: Resolve docs version
804+ # env:
805+ # RELEASE_VERSION: ${{ needs.release.outputs.package-version || needs.resolve-next-release.outputs.next-version }}
806+ # run: |
807+ # if [ "$RELEASE_VERSION" == "false" ]; then
808+ # npx --no vite-node ./scripts/resolveLatestReleaseVersion.ts --saveVersionToFile ./docsVersion.txt
809+ # else
810+ # echo "$RELEASE_VERSION" > ./docsVersion.txt
811+ # fi
812+ # - name: Generate docs with updated version
813+ # env:
814+ # DOCS_URL_BASE: "/"
815+ # run: |
816+ # export DOCS_PACKAGE_VERSION="$(cat ./docsVersion.txt)"
817+ # echo "Package version: $DOCS_PACKAGE_VERSION"
818818
819- npm run docs:build
820- - name : Upload docs to GitHub Pages
821- uses : actions/upload-pages-artifact@v3
822- with :
823- name : pages-docs
824- path : docs-site
825- - name : Deploy docs to GitHub Pages
826- uses : actions/deploy-pages@v4
827- with :
828- artifact_name : pages-docs
829- - name : Update feed
830- run : |
831- curl -X POST "https://pubsubhubbub.appspot.com/" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "hub.mode=publish" --data-urlencode "hub.url=https://node-llama-cpp.withcat.ai/blog/feed.atom"
819+ # npm run docs:build
820+ # - name: Upload docs to GitHub Pages
821+ # uses: actions/upload-pages-artifact@v3
822+ # with:
823+ # name: pages-docs
824+ # path: docs-site
825+ # - name: Deploy docs to GitHub Pages
826+ # uses: actions/deploy-pages@v4
827+ # with:
828+ # artifact_name: pages-docs
829+ # - name: Update feed
830+ # run: |
831+ # curl -X POST "https://pubsubhubbub.appspot.com/" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "hub.mode=publish" --data-urlencode "hub.url=https://node-llama-cpp.withcat.ai/blog/feed.atom"
832832
833833# fix-broken-github-release:
834834# name: Fix broken GitHub release
0 commit comments