Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/draft-release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,20 @@ jobs:
run: |
npm version ${{ steps.bump-version.outputs.new_version }} --no-git-tag-version

- name: Update Rokt Payment Extension package.json
working-directory: Kits/RoktPaymentExtension
run: |
npm version ${{ steps.bump-version.outputs.new_version }} --no-git-tag-version

- name: Update plugin.xml versions
run: |
sed -i '' "s/version=\"[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\"/version=\"${{ steps.bump-version.outputs.new_version }}\"/" plugin/plugin.xml
sed -i '' "s/version=\"[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\"/version=\"${{ steps.bump-version.outputs.new_version }}\"/" Kits/Rokt/plugin.xml
sed -i '' "s/version=\"[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\"/version=\"${{ steps.bump-version.outputs.new_version }}\"/" Kits/RoktPaymentExtension/plugin.xml

- name: Update iOS wrapper SDK version
run: |
sed -i '' "s/_setWrapperSdk_internal:MPWrapperSdkCordova version:@\"[0-9.]*\"/_setWrapperSdk_internal:MPWrapperSdkCordova version:@\"${{ steps.bump-version.outputs.new_version }}\"/" plugin/src/ios/CDVMParticle.m

- name: Publish Plugin to npm (dry-run)
working-directory: plugin
Expand All @@ -81,6 +91,10 @@ jobs:
working-directory: Kits/Rokt
run: npm publish --dry-run

- name: Publish Rokt Payment Extension to npm (dry-run)
working-directory: Kits/RoktPaymentExtension
run: npm publish --dry-run

- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@f62c3c390716df5af712ba5d94f4f4a8efc1306d # v3.1.0
with:
Expand Down Expand Up @@ -108,14 +122,17 @@ jobs:
body: |
Preparing for release ${{ steps.bump-version.outputs.new_version }}

There should be 6 files that have been updated:
There should be 9 files that have been updated:
- plugin/package.json
- plugin/plugin.xml
- plugin/src/ios/CDVMParticle.m
- Kits/Rokt/package.json
- Kits/Rokt/plugin.xml
- Kits/RoktPaymentExtension/package.json
- Kits/RoktPaymentExtension/plugin.xml
- CHANGELOG.md
- VERSION

Additionally a dry-run publish was successfully run for the plugin and Rokt kit.
Additionally a dry-run publish was successfully run for the plugin, Rokt kit, and Rokt payment extension.
labels: |
release
2 changes: 1 addition & 1 deletion Kits/RoktPaymentExtension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mparticle/cordova-rokt-payment-extension",
"version": "3.0.0",
"version": "3.0.1",
"description": "Adds Rokt payment extension support (Apple Pay, AfterPay/Clearpay, PayPal via Stripe) to your Cordova project",
"homepage": "https://www.mparticle.com",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion Kits/RoktPaymentExtension/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
id="@mparticle/cordova-rokt-payment-extension"
version="3.0.0">
version="3.0.1">
<name>MParticle Rokt Payment Extension Kit</name>
<description>Adds Rokt payment extension support (Apple Pay, AfterPay/Clearpay, PayPal via Stripe) to your Cordova project</description>
<platform name="ios">
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/ios/CDVMParticle.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ @interface CDVMParticle : CDVPlugin
@implementation CDVMParticle

- (void)pluginInitialize {
[MParticle _setWrapperSdk_internal:MPWrapperSdkCordova version:@""];
[MParticle _setWrapperSdk_internal:MPWrapperSdkCordova version:@"3.0.1"];
}

- (void)logEvent:(CDVInvokedUrlCommand*)command {
Expand Down
Loading