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 9c75631..cb017c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yext/analytics", - "version": "1.1.0", + "version": "1.2.0-beta.0", "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 ae0d818..c81c343 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.1.0' + ANALYTICS: '1.2.0-beta.0' }, 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.1.0' + ANALYTICS: '1.2.0-beta.0' }, destinationUrl: 'https://google.com', pageUrl: 'http://localhost/', @@ -214,7 +214,7 @@ describe('Test report function', () => { referrerUrl: 'https://referrer-site.com', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.1.0' + ANALYTICS: '1.2.0-beta.0' }, count: 1, sessionId: undefined @@ -279,7 +279,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.1.0', + ANALYTICS: '1.2.0-beta.0', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -337,7 +337,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.1.0', + ANALYTICS: '1.2.0-beta.0', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -392,7 +392,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'Bearer bearerToken', clientSdk: { - ANALYTICS: '1.1.0', + ANALYTICS: '1.2.0-beta.0', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -443,7 +443,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.1.0' + ANALYTICS: '1.2.0-beta.0' }, referrerUrl: 'https://yext.com', count: 5 @@ -491,7 +491,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.1.0' + ANALYTICS: '1.2.0-beta.0' }, referrerUrl: 'https://yext.com', count: 5 @@ -534,7 +534,7 @@ describe('Test report function', () => { { authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.1.0' + ANALYTICS: '1.2.0-beta.0' }, pageUrl: 'http://localhost/', sessionId: undefined @@ -575,7 +575,7 @@ describe('Test report function', () => { { authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.1.0' + ANALYTICS: '1.2.0-beta.0' } }, config @@ -618,7 +618,7 @@ describe('Test report function', () => { action: 'ADD_TO_CART', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.1.0' + ANALYTICS: '1.2.0-beta.0' }, referrerUrl: 'https://yext.com', count: 5 @@ -649,7 +649,7 @@ describe('Test report function', () => { action: 'APPLY', authorization: 'KEY validKey', clientSdk: { - ANALYTICS: '1.1.0', + ANALYTICS: '1.2.0-beta.0', chat: '1.0.1.0' }, destinationUrl: 'https://google.com', @@ -777,7 +777,7 @@ describe('Test report function', () => { responseId: 'responseId' }, clientSdk: { - ANALYTICS: '1.1.0', + ANALYTICS: '1.2.0-beta.0', chat: '1.0.0' }, count: 5,