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
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
26 changes: 13 additions & 13 deletions tests/AnalyticsEventReporter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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/',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -575,7 +575,7 @@ describe('Test report function', () => {
{
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.1.0'
ANALYTICS: '1.2.0-beta.0'
}
},
config
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down