Compare commits

...

4 Commits

Author SHA1 Message Date
guokexin.02
6bb34823da test: isolate GitHub publish rejection 2026-07-28 18:58:23 +08:00
guokexin.02
1b8085140a test: target GitHub publish rejection 2026-07-28 18:49:11 +08:00
guokexin.02
94edc7462a test: rehearse GitHub release publish rejection 2026-07-28 18:40:27 +08:00
guokexin.02
ec25e0df90 test: rehearse macOS code signature verification 2026-07-28 18:31:39 +08:00
3 changed files with 6 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ jobs:
head_sha="$(git rev-parse --verify 'HEAD^{commit}')"
tag_sha="$(git rev-parse --verify "refs/tags/${TAG}^{commit}")"
[[ "$tag_sha" == "$head_sha" ]] || { echo "Tag ${TAG} does not resolve to checked-out HEAD." >&2; exit 1; }
if [[ ! "$TAG" =~ ^v1\.0\.78-beta\.[1-7]$ ]]; then
if [[ ! "$TAG" =~ ^v1\.0\.78-beta\.([1-9]|10)$ ]]; then
git merge-base --is-ancestor "$head_sha" FETCH_HEAD || { echo "Tag ${TAG} is not contained in origin/main." >&2; exit 1; }
fi
@@ -133,9 +133,6 @@ jobs:
mkdir release-candidate
cp dist/*.tar.gz dist/*.zip dist/checksums.txt release-candidate/
cp dist/checksums.txt checksums.txt
if [[ "$VERSION" == "1.0.78-beta.6" ]]; then
printf '\0' >> "release-candidate/lark-cli-${VERSION}-darwin-amd64.tar.gz"
fi
npm install --global npm@11.16.0
pack_json="$(npm pack --ignore-scripts --json --pack-destination release-candidate)"
node - "$pack_json" "$VERSION" <<'NODE'
@@ -251,8 +248,7 @@ jobs:
grep -Fxq "TeamIdentifier=${MACOS_TEAM_ID}" <<<"$details"
grep -Fq 'flags=0x10000(runtime)' <<<"$details"
grep -Eq '^Timestamp=.+' <<<"$details"
spctl --assess --type execute --verbose=4 "$binary" 2>&1 | tee "$work/spctl.txt"
grep -Fq 'source=Notarized Developer ID' "$work/spctl.txt"
codesign --verify --strict --verbose=4 --check-notarization -R='notarized' "$binary"
"$binary" --version | grep -Fq "$VERSION"
publish-github:
@@ -276,7 +272,7 @@ jobs:
[[ "$(git rev-parse "refs/tags/${TAG}^{commit}")" == "$SOURCE_SHA" ]] || { echo "Release tag changed after preflight." >&2; exit 1; }
- name: Publish verified Draft Release
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.ref_name == 'v1.0.78-beta.10' && 'invalid-release-token' || github.token }}
TAG: ${{ github.ref_name }}
run: gh release edit "$TAG" --draft=false

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@larksuite/cli",
"version": "1.0.78-beta.6",
"version": "1.0.78-beta.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@larksuite/cli",
"version": "1.0.78-beta.6",
"version": "1.0.78-beta.10",
"cpu": [
"x64",
"arm64",

View File

@@ -1,6 +1,6 @@
{
"name": "@larksuite/cli",
"version": "1.0.78-beta.6",
"version": "1.0.78-beta.10",
"description": "The official CLI for Lark/Feishu open platform",
"bin": {
"lark-cli": "scripts/run.js"