diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7f3d709..b3e46ea 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/package.json b/package.json index b98f138..2896061 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/internal/QonversionInternal.ts b/src/internal/QonversionInternal.ts index 9cfea59..1672817 100644 --- a/src/internal/QonversionInternal.ts +++ b/src/internal/QonversionInternal.ts @@ -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';