mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-29 00:01:42 +08:00
42342be665
Cloudflare Workers Builds deploys master continuously without setting ZPAN_APP_VERSION, and its checkout has no tags, so git describe --always fell back to a bare commit hash — the deployed Worker showed a commit instead of a version. package.json is present in every build environment, so read the version from it when ZPAN_APP_VERSION is unset. Release/Docker/GH-action deploys still pass the exact tag via the env var, which keeps priority. Release process: bump package.json on each release so Workers Builds reports the right version. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>