Skip to content

build(deps): move @intx/* to 0.4.0 (CL-8797) #21

build(deps): move @intx/* to 0.4.0 (CL-8797)

build(deps): move @intx/* to 0.4.0 (CL-8797) #21

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bunx tsc --noEmit
- run: bun test ./src
- run: bunx prettier --check src
- run: bun run build
- name: Import packed dist with Node
run: |
set -euo pipefail
tarball=$(npm pack)
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir" "$tarball"' EXIT
cd "$tmpdir"
npm init -y >/dev/null
npm install "$OLDPWD/$tarball"
node --input-type=module -e "import { embedTexts } from '@corbits/embedding'; if (typeof embedTexts !== 'function') process.exit(1)"