1 Commits

Author SHA1 Message Date
李启源
d349220395 fix(ci): avoid shallow tag pack checkout
Some checks failed
Package component / package (push) Failing after 2s
2026-08-13 21:56:58 +08:00
2 changed files with 4 additions and 2 deletions

View File

@@ -19,7 +19,9 @@ jobs:
tag_name="${{ gitea.ref_name }}" tag_name="${{ gitea.ref_name }}"
git init . git init .
git remote add origin "$repository_url" git remote add origin "$repository_url"
git fetch --depth 1 origin "refs/tags/$tag_name:refs/tags/$tag_name" # Gitea can return an invalid shallow pack for tag-only fetches.
# Fetch the tag without depth limiting and force protocol v0 for compatibility.
git -c protocol.version=0 fetch --no-tags origin "refs/tags/$tag_name:refs/tags/$tag_name"
git checkout --detach "$tag_name^{commit}" git checkout --detach "$tag_name^{commit}"
- name: Set up pnpm - name: Set up pnpm

View File

@@ -1,6 +1,6 @@
{ {
"name": "waveform-analysis", "name": "waveform-analysis",
"version": "0.1.33", "version": "0.1.34",
"main": "./dist/index.cjs", "main": "./dist/index.cjs",
"module": "./dist/index.js", "module": "./dist/index.js",
"types": "./dist/types/index.d.ts", "types": "./dist/types/index.d.ts",