Skip to content

Commit cde60d1

Browse files
committed
Removed finalize job from release workflow (no GitHub App configured)
1 parent 1fc7bf5 commit cde60d1

1 file changed

Lines changed: 0 additions & 73 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -278,76 +278,3 @@ jobs:
278278
release-assets/install.sh
279279
release-assets/install.ps1
280280
fail_on_unmatched_files: true
281-
282-
finalize:
283-
name: Finalize release
284-
needs: [preflight, release]
285-
runs-on: ubuntu-24.04
286-
steps:
287-
- id: app_token
288-
name: Mint release app token
289-
uses: actions/create-github-app-token@v2
290-
with:
291-
app-id: ${{ secrets.RELEASE_APP_ID }}
292-
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
293-
owner: ${{ github.repository_owner }}
294-
295-
- name: Checkout
296-
uses: actions/checkout@v6
297-
with:
298-
ref: main
299-
fetch-depth: 0
300-
token: ${{ steps.app_token.outputs.token }}
301-
persist-credentials: true
302-
303-
- id: app_bot
304-
name: Resolve GitHub App bot identity
305-
env:
306-
GH_TOKEN: ${{ steps.app_token.outputs.token }}
307-
APP_SLUG: ${{ steps.app_token.outputs.app-slug }}
308-
run: |
309-
user_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"
310-
echo "name=${APP_SLUG}[bot]" >> "$GITHUB_OUTPUT"
311-
echo "email=${user_id}+${APP_SLUG}[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
312-
313-
- name: Setup Bun
314-
uses: oven-sh/setup-bun@v2
315-
with:
316-
bun-version-file: package.json
317-
318-
- name: Setup Node
319-
uses: actions/setup-node@v6
320-
with:
321-
node-version-file: package.json
322-
323-
- id: update_versions
324-
name: Update version strings
325-
env:
326-
RELEASE_VERSION: ${{ needs.preflight.outputs.version }}
327-
run: node scripts/update-release-package-versions.ts "$RELEASE_VERSION" --github-output
328-
329-
- name: Format package.json files
330-
if: steps.update_versions.outputs.changed == 'true'
331-
run: bunx oxfmt apps/server/package.json apps/desktop/package.json apps/web/package.json packages/contracts/package.json
332-
333-
- name: Refresh lockfile
334-
if: steps.update_versions.outputs.changed == 'true'
335-
run: bun install --lockfile-only --ignore-scripts
336-
337-
- name: Commit and push version bump
338-
if: steps.update_versions.outputs.changed == 'true'
339-
shell: bash
340-
env:
341-
RELEASE_TAG: ${{ needs.preflight.outputs.tag }}
342-
run: |
343-
if git diff --quiet -- apps/server/package.json apps/desktop/package.json apps/web/package.json packages/contracts/package.json bun.lock; then
344-
echo "No version changes to commit."
345-
exit 0
346-
fi
347-
348-
git config user.name "${{ steps.app_bot.outputs.name }}"
349-
git config user.email "${{ steps.app_bot.outputs.email }}"
350-
351-
git add apps/server/package.json apps/desktop/package.json apps/web/package.json packages/contracts/package.json bun.lock
352-
git commit -m "chore(release): prepare $RELEASE_TAG"
353-
git push origin HEAD:main

0 commit comments

Comments
 (0)