From 9537a39f972b9244db5a3a0c537a3ca7bda8afb1 Mon Sep 17 00:00:00 2001 From: Jin Xu Date: Mon, 18 Nov 2024 17:23:29 -0800 Subject: [PATCH] add prerelease link replacement for Package@swift-5.9.swift --- release.config.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/release.config.js b/release.config.js index 86c511b..8af21ea 100644 --- a/release.config.js +++ b/release.config.js @@ -51,11 +51,25 @@ module.exports = { ], "countMatches": true }, + { + "files": ["Package@swift-5.9.swift"], + "from": "https://github.com/amplitude/analytics-connector-ios/releases/download/v.*/AnalyticsConnector.xcframework.zip", + "to": "https://github.com/amplitude/analytics-connector-ios/releases/download/v${nextRelease.version}/AnalyticsConnector.xcframework.zip", + "results": [ + { + "file": "Package@swift-5.9.swift", + "hasChanged": true, + "numMatches": 1, + "numReplacements": 1 + } + ], + "countMatches": true + }, ] } ], ["@semantic-release/git", { - "assets": ["AnalyticsConnector.podspec", "CHANGELOG.md", "Package.swift"], + "assets": ["AnalyticsConnector.podspec", "CHANGELOG.md", "Package.swift", "Package@swift-5.9.swift"], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" }], ["@semantic-release/exec", {