Skip to content

Commit 6b0336d

Browse files
committed
sync
1 parent 5d5977c commit 6b0336d

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ run-name: "${{ format('release {0}', inputs.bump) }}"
44
on:
55
push:
66
branches:
7+
- ci
78
- dev
89
- snapshot-*
910
workflow_dispatch:
@@ -35,7 +36,7 @@ jobs:
3536
steps:
3637
- uses: actions/checkout@v3
3738
with:
38-
fetch-depth: 0
39+
fetch-depth: 1
3940
- uses: ./.github/actions/setup-bun
4041
- id: version
4142
run: |
@@ -56,9 +57,8 @@ jobs:
5657
steps:
5758
- uses: actions/checkout@v3
5859
with:
59-
fetch-depth: 0
60-
61-
- run: git fetch --force --tags
60+
fetch-depth: 1
61+
fetch-tags: true
6262

6363
- uses: ./.github/actions/setup-bun
6464

@@ -102,7 +102,8 @@ jobs:
102102
steps:
103103
- uses: actions/checkout@v3
104104
with:
105-
fetch-depth: 0
105+
fetch-depth: 1
106+
fetch-tags: true
106107

107108
- uses: apple-actions/import-codesign-certs@v2
108109
if: ${{ runner.os == 'macOS' }}
@@ -124,8 +125,6 @@ jobs:
124125
run: |
125126
echo "${{ secrets.APPLE_API_KEY_PATH }}" > $RUNNER_TEMP/apple-api-key.p8
126127
127-
- run: git fetch --force --tags
128-
129128
- uses: ./.github/actions/setup-bun
130129

131130
- name: install dependencies (ubuntu only)
@@ -201,7 +200,7 @@ jobs:
201200
steps:
202201
- uses: actions/checkout@v3
203202
with:
204-
fetch-depth: 0
203+
fetch-depth: 1
205204

206205
- name: Install OpenCode
207206
if: inputs.bump || inputs.version

script/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (Script.release) {
6767
await $`git cherry-pick HEAD..origin/dev`.nothrow()
6868
await $`git push origin HEAD --tags --no-verify --force-with-lease`
6969
await new Promise((resolve) => setTimeout(resolve, 5_000))
70-
await $`gh release edit v${Script.version} --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"}`
70+
await $`gh release edit v${Script.version} --draft=false --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"}`
7171
}
7272

7373
console.log("\n=== cli ===\n")

0 commit comments

Comments
 (0)