Skip to content

Commit 4051924

Browse files
grdsdevclaude
andcommitted
feat: restore and improve release-please configuration
- Replace semantic-release with release-please for better Swift library support - Add minimal release-please configuration with default values - Configure automatic version updates in Sources/Helpers/Version.swift - Simplify GitHub workflow to use googleapis/release-please-action@v4 - Remove Node.js dependencies and semantic-release configuration - Support releases from main and release/* branches 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fd8ca71 commit 4051924

File tree

8 files changed

+22
-6892
lines changed

8 files changed

+22
-6892
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,18 @@ on:
44
push:
55
branches:
66
- main
7-
- rc
8-
7+
- release/*
98
workflow_dispatch:
109

1110
permissions:
12-
contents: read
11+
contents: write
12+
pull-requests: write
1313

1414
jobs:
15-
release:
15+
release-please:
1616
runs-on: ubuntu-latest
17-
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
18-
permissions:
19-
contents: write
20-
issues: write
21-
pull-requests: write
22-
id-token: write
23-
attestations: write
24-
2517
steps:
26-
- name: Generate token
27-
id: app-token
28-
uses: actions/create-github-app-token@v2
29-
with:
30-
app-id: ${{ secrets.APP_ID }}
31-
private-key: ${{ secrets.PRIVATE_KEY }}
32-
33-
- name: Checkout
34-
uses: actions/checkout@v5
35-
with:
36-
fetch-depth: 0
37-
token: ${{ steps.app-token.outputs.token }}
38-
persist-credentials: false
39-
40-
- name: Setup Node.js
41-
uses: actions/setup-node@v5
18+
- uses: googleapis/release-please-action@v4
19+
id: release
4220
with:
43-
node-version: "20"
44-
cache: "npm"
45-
46-
- name: Install dependencies
47-
run: npm ci
48-
49-
- name: Run semantic-release
50-
id: semantic-release
51-
run: npx semantic-release
52-
env:
53-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
54-
continue-on-error: false
55-
56-
- name: Check if release was created
57-
if: steps.semantic-release.outcome == 'success'
58-
run: echo "Release created successfully"
21+
target-branch: ${{ github.ref_name }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.32.0"
3+
}

.releaserc.json

Lines changed: 0 additions & 77 deletions
This file was deleted.

Sources/Helpers/Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import XCTestDynamicOverlay
33

4-
private let _version = "2.32.0"
4+
private let _version = "2.32.0" // {x-release-please-version}
55

66
#if DEBUG
77
package let version = isTesting ? "0.0.0" : _version

0 commit comments

Comments
 (0)