@norskvideo/ctl-dev-kit 0.2.120 → 0.2.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,6 +36,9 @@ on:
36
36
 
37
37
  permissions:
38
38
  contents: read
39
+ # GitHub Packages and ghcr need a token even to read norsk's dev packages and
40
+ # engine (the dev SDK lane below).
41
+ packages: read
39
42
 
40
43
  # Key the group on event_name so a push never queues behind an in-flight
41
44
  # ctl-candidate validation. Nothing cancels a run in progress
@@ -266,6 +269,25 @@ jobs:
266
269
  - name: Install dependencies
267
270
  run: nix develop .#build --command bun install --frozen-lockfile
268
271
 
272
+ # The dev SDK lane, for a repo that opts in with .github/ci/sdk-dev.sh
273
+ # (norsk-relay), as checks.yml runs it: on a push to main the norsk SDKs
274
+ # are reinstalled from norsk's dev packages (every green push to norsk
275
+ # main, on GitHub Packages) and the script names the engine built from
276
+ # the same commit as NORSK_IMAGE, so the image and the journey run
277
+ # against norsk as it is now, not the nightly the tree pins. Not for a
278
+ # dispatch: pins-bumped asks about the pin, ctl-candidate about a ctl
279
+ # build, and both score against what ships. The committed pins are
280
+ # untouched. The image build needs the dev registry too: the repo's
281
+ # build script hands it the ~/.npmrc sdk-dev.sh wrote, as a build secret.
282
+ - name: Norsk SDKs and engine from norsk's dev builds
283
+ if: ${{ github.event_name == 'push' && hashFiles('.github/ci/sdk-dev.sh') != '' }}
284
+ env:
285
+ GITHUB_TOKEN: ${{ github.token }}
286
+ run: |
287
+ set -euo pipefail
288
+ nix develop .#build --command bash .github/ci/sdk-dev.sh
289
+ echo "${GITHUB_TOKEN}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
290
+
269
291
  # Before anything is built or launched: does this licence actually name
270
292
  # this product? `product add` refuses one it does not, and that refusal
271
293
  # reaches the log as a 60-second readiness timeout indistinguishable from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-dev-kit",
3
- "version": "0.2.120",
3
+ "version": "0.2.121",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",