chore: block releases for Capacitor 9 (#41)

This commit is contained in:
Pedro Bilro 2026-09-10 16:52:37 +01:00 committed by GitHub
parent fd80ee6f10
commit 20fe7c6b59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View file

@ -18,6 +18,14 @@ jobs:
runs-on: macos-15 runs-on: macos-15
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Validate release version
run: |
version="${{ inputs.release-version }}"
major="${version%%.*}"
if [[ ! "$major" =~ ^[0-9]+$ ]] || (( major < 6 || major > 8 )); then
echo "::error::Capacitor $version is not supported by this repository. Starting with Capacitor 9 (see https://github.com/ionic-team/capacitor/pull/8588 PR), the iOS platform is a source-first Swift package built directly from the ionic-team/capacitor repository, so SPM distribution no longer happens here. This repository only releases major versions 6, 7, and 8."
exit 1
fi
- run: | - run: |
if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then
sudo xcode-select --switch /Applications/Xcode_16.2.app sudo xcode-select --switch /Applications/Xcode_16.2.app

2
.gitignore vendored
View file

@ -3,4 +3,4 @@ capacitor-checkout
*.zip *.zip
.swiftpm .swiftpm
frameworks frameworks
.build

View file

@ -1,3 +1,5 @@
# Swift Package Manager Support for Capacitor # Swift Package Manager Support for Capacitor
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for SPM support. This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for SPM support.
Only applies to Capacitor major versions 6, 7, and 8. Starting with Capacitor 9, the iOS platform is a source-first Swift package built directly from the [ionic-team/capacitor](https://github.com/ionic-team/capacitor) repository.