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
27 changes: 18 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
name: Publish

on:
workflow_dispatch:
release:
types: [released]

permissions:
id-token: write
contents: read

jobs:
publish:
name: Upload archives
runs-on: macos-latest
permissions:
id-token: write # OIDC for npm trusted publishers
contents: read
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'

- name: Upgrade npm
run: npm install -g npm@11.7.0

- name: Build
run: |
yarn
yarn build

- name: Setup node for publishing
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qonversion/capacitor-plugin",
"version": "1.0.0",
"version": "1.1.0",
"description": "Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and content using our StoreKit wrapper and Google Play Billing wrapper.",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/internal/QonversionInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {PurchaseOptionsBuilder} from '../dto/PurchaseOptionsBuilder';
import {SKProductDiscount} from '../dto/storeProducts/SKProductDiscount';
import {PromotionalOffer} from '../dto/PromotionalOffer';

export const sdkVersion = "1.0.0";
export const sdkVersion = "1.1.0";
export const sdkSource = "capacitor";

const entitlementsUpdatedEvent = 'entitlementsUpdatedEvent';
Expand Down