Skip to content

Commit 4078b8d

Browse files
authored
fix: Use draft releases to support GitHub immutable releases (#1204)
1 parent e30d1ce commit 4078b8d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/code-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,8 @@ jobs:
123123
APP_VERSION: ${{ steps.version.outputs.version }}
124124
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
125125
run: pnpm --filter code run publish
126+
127+
- name: Publish GitHub release
128+
env:
129+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
130+
run: gh release edit "v${{ steps.version.outputs.version }}" --repo PostHog/code --draft=false

apps/code/forge.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const config: ForgeConfig = {
243243
owner: "PostHog",
244244
name: "code",
245245
},
246-
draft: false,
246+
draft: true,
247247
prerelease: false,
248248
}),
249249
],

0 commit comments

Comments
 (0)