Skip to content

Commit ca9a3b5

Browse files
Sync from the Ink Studio AI repository (3f11e98)
1 parent cf3fb4c commit ca9a3b5

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,20 @@ permissions:
2626
jobs:
2727
release:
2828
runs-on: ubuntu-latest
29+
# This job can prove its identity to npm, so actions and npm are pinned.
2930
steps:
30-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
32+
with:
33+
persist-credentials: false
3134

3235
# Trusted publishing needs Node 22.14 or later and npm 11.5.1 or later.
33-
- uses: actions/setup-node@v4
36+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3437
with:
3538
node-version: "22"
3639
registry-url: https://registry.npmjs.org
3740

3841
- name: Update npm
39-
run: npm install -g npm@11
42+
run: npm install -g npm@11.21.1
4043

4144
- name: Run the tests
4245
run: node --test test/*.test.mjs
@@ -51,8 +54,7 @@ jobs:
5154
fi
5255
5356
# A pinned release with its SHA-256 (from registry_<version>_checksums.txt
54-
# of that release): this job can prove its identity to npm, so it must
55-
# not run whatever "latest" is. Change both values together.
57+
# of that release), not whatever "latest" is. Change both values together.
5658
- name: Install mcp-publisher
5759
env:
5860
MCP_PUBLISHER_VERSION: v1.8.4

‎test/mock-server.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// A local server that follows docs/public-api.md, for the CLI tests.
1+
// A local server that follows the public API (https://inkstudioai.com/api/v1/openapi.json), for the CLI tests.
22
import { createServer } from "node:http";
33

44
export const VALID_KEY = "isk_test_valid_key_0001";
55
export const OTHER_KEY = "isk_test_other_key_0002";
66
export const IMAGE_BYTES = Buffer.from("RIFF0000WEBPVP8 fake image bytes");
77

8-
/** The same plans and packs as src/lib/billing/catalog.ts, in its order. */
8+
/** The same plans and packs as GET /api/v1/pricing, in its order. */
99
export const PRICING = {
1010
currency: "usd",
1111
pricingUrl: "https://inkstudioai.com/pricing",

0 commit comments

Comments
 (0)