Skip to content

Commit a37b99b

Browse files
committed
inference: publish script fix
1 parent 4d4e207 commit a37b99b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/inference-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
5353
# Update package.json with the new version
5454
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
55+
pnpm --filter inference package-to-ts
5556
pnpm --filter doc-internal run fix-cdn-versions
5657
git add ../..
5758
git commit -m "🔖 @huggingface/inference $BUMPED_VERSION"

packages/inference/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@huggingface/inference",
3-
"version": "3.13.2",
3+
"version": "3.14.0",
44
"packageManager": "[email protected]",
55
"license": "MIT",
66
"author": "Hugging Face and Tim Mikeladze <[email protected]>",

packages/inference/src/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Generated file from package.json. Issues importing JSON directly when publishing on commonjs/ESM - see https://github.com/microsoft/TypeScript/issues/51783
2-
export const PACKAGE_VERSION = "3.13.2";
2+
export const PACKAGE_VERSION = "3.14.0";
33
export const PACKAGE_NAME = "@huggingface/inference";

packages/inference/test/InferenceClient.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { assert, describe, expect, it } from "vitest";
22

33
import type { ChatCompletionStreamOutput } from "@huggingface/tasks";
44

5-
import type { TextToImageArgs } from "../src.js";
5+
import type { TextToImageArgs } from "../src/index.js";
66
import {
77
chatCompletion,
88
chatCompletionStream,
99
HfInference,
1010
InferenceClient,
1111
textGeneration,
1212
textToImage,
13-
} from "../src";
13+
} from "../src/index.js";
1414
import { isUrl } from "../src/lib/isUrl.js";
1515
import { HARDCODED_MODEL_INFERENCE_MAPPING } from "../src/providers/consts.js";
1616
import { readTestFile } from "./test-files.js";

0 commit comments

Comments
 (0)