Skip to content

Commit

Permalink
chore: removed growthbook decryption key as it is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Oct 2, 2024
1 parent d681251 commit 96bbc45
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ inputs:
GROWTHBOOK_CLIENT_KEY:
description: Growthbook client key for analytics
required: false
GROWTHBOOK_DECRYPTION_KEY:
description: Growthbook decryption key for analytics
required: false
runs:
using: composite
steps:
Expand All @@ -26,6 +23,5 @@ runs:
TRACKJS_TOKEN: ${{ inputs.TRACKJS_TOKEN }}
RUDDERSTACK_KEY: ${{ inputs.RUDDERSTACK_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ inputs.GROWTHBOOK_CLIENT_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ inputs.GROWTHBOOK_DECRYPTION_KEY }}
run: npm run build
shell: bash
1 change: 0 additions & 1 deletion .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
NODE_ENV: production
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }}
- name: Versioning
uses: ./.github/actions/versioning
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
with:
NODE_ENV: staging
RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }}
- name: Versioning
uses: ./.github/actions/versioning
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
NODE_ENV: staging
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }}
- name: Versioning
uses: ./.github/actions/versioning
Expand Down
1 change: 0 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const config = {
customFields: {
trackJsToken: process.env.TRACKJS_TOKEN,
rudderstackKey: process.env.RUDDERSTACK_KEY,
growthbookDecryptionKey: process.env.GROWTHBOOK_DECRYPTION_KEY,
growthbookClientKey: process.env.GROWTHBOOK_CLIENT_KEY,
},

Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,md,json}' --config ./.prettierrc"
},
"dependencies": {
"@deriv-com/analytics": "^1.18.0",
"@deriv-com/analytics": "^1.22.1",
"@deriv-com/auth-client": "^1.0.27",
"@deriv/deriv-api": "^1.0.11",
"@deriv/quill-icons": "^1.22.10",
Expand Down
3 changes: 1 addition & 2 deletions src/theme/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ if (trackJsToken) {
console.warn('trackjs is not installed due to a missing token');
}

if (rudderstackKey && growthbookClientKey && growthbookDecryptionKey) {
if (rudderstackKey && growthbookClientKey) {
Analytics?.initialise({
growthbookKey: siteConfig.customFields.growthbookClientKey.toString(),
growthbookDecryptionKey: siteConfig.customFields.growthbookDecryptionKey.toString(),
rudderstackKey: siteConfig.customFields.rudderstackKey.toString(),
});
} else {
Expand Down

0 comments on commit 96bbc45

Please sign in to comment.