From ffcdea03297d3acbb8600f1b8fd34efe88455a7a Mon Sep 17 00:00:00 2001 From: Timothy Chiao Date: Tue, 21 Oct 2025 14:04:39 -0400 Subject: [PATCH] EventsSDK: create 1.0.0-beta.9 to test OIDC publishing Change-Id: I98bab1b2a7db127e848523226d80781c23ea426d --- .github/workflows/publish.yml | 14 ++++++++++++++ package.json | 2 +- tests/AnalyticsEventReporter.test.ts | 24 ++++++++++++------------ 3 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..13e6345 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +name: Publish Package + +on: + push: + tags: + - "v*" + workflow_dispatch: # allow manual run + +permissions: + id-token: write # Required for OIDC + +jobs: + publish: + uses: yext/slapshot-reusable-workflows/.github/workflows/publish.yml@v1 \ No newline at end of file diff --git a/package.json b/package.json index f77ad40..8c36032 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yext/analytics", - "version": "1.0.0", + "version": "1.0.0-beta.9", "description": "An analytics library for Yext", "author": "fusion@yext.com", "license": "BSD-3-Clause", diff --git a/tests/AnalyticsEventReporter.test.ts b/tests/AnalyticsEventReporter.test.ts index 1186ff1..b9dc4b6 100644 --- a/tests/AnalyticsEventReporter.test.ts +++ b/tests/AnalyticsEventReporter.test.ts @@ -118,7 +118,7 @@ describe('Test report function', () => { action: 'C_CUSTOM_ACTION', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' }, referrerUrl: 'https://yext.com', destinationUrl: 'https://google.com', @@ -162,7 +162,7 @@ describe('Test report function', () => { action: 'c_lowercase_custom_action', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' }, destinationUrl: 'https://google.com', count: 5 @@ -217,7 +217,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.0.0', + ANALYTICS: '1.0.0-beta.9', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -274,7 +274,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.0.0', + ANALYTICS: '1.0.0-beta.9', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -328,7 +328,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.0.0', + ANALYTICS: '1.0.0-beta.9', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -378,7 +378,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' }, referrerUrl: 'https://yext.com', count: 5 @@ -426,7 +426,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' }, referrerUrl: 'https://yext.com', count: 5 @@ -469,7 +469,7 @@ describe('Test report function', () => { { authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' } }, config @@ -508,7 +508,7 @@ describe('Test report function', () => { { authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' } }, config @@ -551,7 +551,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0' + ANALYTICS: '1.0.0-beta.9' }, referrerUrl: 'https://yext.com', count: 5 @@ -582,7 +582,7 @@ describe('Test report function', () => { action: 'APPLY', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.0.0', + ANALYTICS: '1.0.0-beta.9', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -710,7 +710,7 @@ describe('Test report function', () => { responseId: 'responseId' }, clientSdk: { - ANALYTICS: '1.0.0', + ANALYTICS: '1.0.0-beta.9', chat: '1.0.0' }, count: 5,