decky / build-publish (push) Successful in 36s
arch / build-publish (push) Successful in 17m12s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 12s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 18s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 13s
docker / build-push (ci, ci/rust-ci-noble.Dockerfile, punktfunk-rust-ci-noble) (push) Successful in 12s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 10s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 10s
apple / screenshots (push) Successful in 26m29s
docker / build-push-arm64cross (push) Successful in 10s
deb / build-publish (push) Successful in 8m55s
docker / deploy-docs (push) Successful in 13s
ci / rust (push) Failing after 17m55s
deb / build-publish-client-arm64 (push) Successful in 7m26s
deb / build-publish-host (push) Successful in 9m41s
apple / swift (push) Successful in 6m1s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Successful in 18m50s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 18m42s
ci / web (push) Successful in 1m27s
ci / docs-site (push) Successful in 1m23s
android / android (push) Successful in 12m13s
ci / rust-arm64 (push) Successful in 9m33s
ci / bench (push) Successful in 7m23s
`- name: Repair the file: dependency (…)` is not valid YAML — the unquoted `file: ` reads as a second mapping key — so the workflow has been unparseable since it was added, which is why re-pushing the tag never triggered a run and a manual dispatch 500'd. I had put that down to a Gitea tag quirk; it was this. The failure is invisible from the repo side: nothing validates workflow YAML on push, and an unparseable workflow simply never runs.
89 lines
3.5 KiB
YAML
89 lines
3.5 KiB
YAML
# Publish the plugin framework (@punktfunk/plugin-kit) to the Gitea npm registry
|
|
# (https://git.unom.io/api/packages/unom/npm/).
|
|
#
|
|
# Trigger: push a tag `plugin-kit-vX.Y.Z` (must equal plugin-kit/package.json "version"),
|
|
# or run manually. Versions independently of the app's `v*` and the SDK's `sdk-v*` tags.
|
|
#
|
|
# The kit's devDependency on @punktfunk/host is `file:../sdk`, so the SDK's dist must be
|
|
# built BEFORE the kit's `bun install` copies it.
|
|
#
|
|
# Auth: REGISTRY_TOKEN — the same repo Actions secret sdk-publish.yml uses.
|
|
name: plugin-kit-publish
|
|
|
|
on:
|
|
push:
|
|
tags: ['plugin-kit-v*']
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-24.04
|
|
container:
|
|
image: oven/bun:1
|
|
timeout-minutes: 15
|
|
steps:
|
|
# oven/bun's slim base ships neither git, a CA bundle, nor node — actions/checkout's HTTPS
|
|
# fetch needs git + ca-certificates, and the version-guard step below uses node.
|
|
- name: Install git + node + CA certs
|
|
run: apt-get update && apt-get install -y --no-install-recommends ca-certificates git nodejs
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build the SDK (file:../sdk dependency source)
|
|
working-directory: sdk
|
|
run: |
|
|
bun install --frozen-lockfile --ignore-scripts
|
|
bun run build
|
|
|
|
- name: Install dependencies
|
|
working-directory: plugin-kit
|
|
run: bun install --frozen-lockfile --ignore-scripts
|
|
|
|
# bun 1.3 installs a `file:` dependency by copying its DIRECTORIES but symlinking each
|
|
# top-level FILE to itself — `node_modules/@punktfunk/host/package.json -> package.json`, a
|
|
# dangling self-reference. `dist/` therefore arrives intact while the manifest that points at
|
|
# it does not, so module resolution dies at the first step and every `@punktfunk/host` import
|
|
# reads as "cannot find module". Replacing the tree with a real copy is the whole fix; drop
|
|
# this step once bun links `file:` deps correctly again.
|
|
- name: "Repair the file: dependency (bun 1.3 self-symlink)"
|
|
working-directory: plugin-kit
|
|
run: |
|
|
# -f follows the link, so this is true only when the manifest actually resolves.
|
|
if test -f node_modules/@punktfunk/host/package.json; then
|
|
echo "bun linked it correctly — this step can go"
|
|
else
|
|
rm -rf node_modules/@punktfunk/host
|
|
cp -R ../sdk node_modules/@punktfunk/host
|
|
fi
|
|
test -f node_modules/@punktfunk/host/package.json
|
|
test -f node_modules/@punktfunk/host/dist/index.d.ts
|
|
|
|
- name: Typecheck
|
|
working-directory: plugin-kit
|
|
run: bun run typecheck
|
|
|
|
- name: Test
|
|
working-directory: plugin-kit
|
|
run: bun test
|
|
|
|
- name: Build (dist/ JS + .d.ts + theme.css)
|
|
working-directory: plugin-kit
|
|
run: bun run build
|
|
|
|
- name: Tag matches package version
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
working-directory: plugin-kit
|
|
run: |
|
|
TAG="${GITHUB_REF_NAME#plugin-kit-v}"
|
|
PKG="$(node -p "require('./package.json').version")"
|
|
test "$TAG" = "$PKG" || { echo "tag $GITHUB_REF_NAME does not match package version $PKG"; exit 1; }
|
|
|
|
- name: Publish to Gitea registry
|
|
working-directory: plugin-kit
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
run: |
|
|
test -n "$NODE_AUTH_TOKEN" || { echo "REGISTRY_TOKEN secret is empty"; exit 1; }
|
|
printf '//git.unom.io/api/packages/unom/npm/:_authToken=%s\n' "$NODE_AUTH_TOKEN" >> .npmrc
|
|
bun publish
|