Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

ci: exercise an authored font in the packaged CLI check (#212)

Sharky Wang75e6db5fc6a4
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
index 14c1ad9b..f9254541 100644
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -89,8 +89,22 @@ jobs:
VERSION: ${{ needs.version.outputs.version }}
run: |
npm install --prefix "$RUNNER_TEMP/hypit-install" "$PWD/dist/release/hypit-hypit-$VERSION.tgz" --no-audit --no-fund
- "$RUNNER_TEMP/hypit-install/node_modules/.bin/hypit" --version
- "$RUNNER_TEMP/hypit-install/node_modules/.bin/hypit" studio --help
+ hypit="$RUNNER_TEMP/hypit-install/node_modules/.bin/hypit"
+ "$hypit" --version
+ "$hypit" studio --help
+ # An authored font resolves through the machine package root. The packaged layout ships
+ # no node_modules beside its sources, so this reaches that root the way an installation
+ # does; running it outside the checkout keeps the workspace links from answering.
+ mkdir -p "$RUNNER_TEMP/hypit-source"
+ printf '%s\n' \
+ '<?svml using="@hypit/markup@1"?>' \
+ '<svml>' \
+ ' <import as="fonts" from="@hypit/fonts-open@1"/>' \
+ ' <fonts:Stack id="body-font" family="inter" weight="400" style="normal"/>' \
+ '</svml>' > "$RUNNER_TEMP/hypit-source/font.svml"
+ cd "$RUNNER_TEMP/hypit-source"
+ "$hypit" packages install @fontsource-variable/[email protected]
+ "$hypit" check font.svml
- uses: actions/upload-artifact@v4
with:
name: npm-package