fix(ci): avoid shallow tag pack checkout
Some checks failed
Package component / package (push) Failing after 2s
Some checks failed
Package component / package (push) Failing after 2s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user