Skip to content

Commit

Permalink
Merge pull request #3 from segmentio/main
Browse files Browse the repository at this point in the history
Merge in main
  • Loading branch information
danrowden authored Jul 30, 2024
2 parents b976431 + d29c23b commit 6729bf1
Show file tree
Hide file tree
Showing 180 changed files with 5,861 additions and 1,312 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish Canary

on:
push:
branches:
- staging

jobs:
build-and-publish:
env:
HUSKY: 0
if: startsWith(github.event.head_commit.message, 'Publish') == true
runs-on: ubuntu-20.04

timeout-minutes: 15

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: yarn

- name: Install Dependencies
run: yarn install --frozen-lockfile --ignore-optional
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: NODE_ENV=production yarn build

- name: Fetch Latest Tags
run: |
git fetch --tags
- name: Set NPM Token
run: |
npm set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_PUBLISH_TOKEN }}
npm whoami
- name: Publish
run: |
yarn lerna publish from-package --yes --allowBranch=staging --loglevel=verbose --dist-tag canary
19 changes: 18 additions & 1 deletion .github/workflows/version-packages.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# This workflow is triggered manually via the GitHub Actions page or API
name: Version Packages
run-name: Version Packages ${{ github.event.inputs.run_id }}
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to create PR from'
required: true
default: 'release-actions'
base_branch:
description: 'Base branch to create PR to'
required: true
default: 'main'
type: choice
options:
- main
- release
run_id:
description: 'Unique identifier for the run'
required: false

jobs:
build-and-version-packages:
Expand All @@ -17,10 +29,15 @@ jobs:
pull-requests: write
contents: write
steps:
- name: Echo Inputs
run: |
echo "Branch ${{ github.event.inputs.branch }} will be created from ${{ github.event.inputs.base_branch }} and a PR will be created to ${{ github.event.inputs.base_branch }}"
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.event.inputs.base_branch }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down Expand Up @@ -71,6 +88,6 @@ jobs:
run: |
pr_message="This PR was opened by GithHub Actions. Whenever you're ready to publish the packages, merge this PR."
description="$(printf "%s\n # Packages\n%s" "$pr_message" "${{ steps.commit_and_push.outputs.packages_published }}")"
gh pr create --base main --head ${{ github.event.inputs.branch }} --title "Publish" --body "$description"
gh pr create --base ${{ github.event.inputs.base_branch }} --head ${{ github.event.inputs.branch }} --title "Publish" --body "$description"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions packages/actions-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@segment/actions-shared",
"description": "Shared destination action methods and definitions.",
"version": "1.103.0",
"version": "1.105.0",
"repository": {
"type": "git",
"url": "https://github.com/segmentio/action-destinations",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@amplitude/ua-parser-js": "^0.7.25",
"@segment/actions-core": "^3.122.0",
"@segment/actions-core": "^3.124.0",
"cheerio": "^1.0.0-rc.10",
"dayjs": "^1.10.7",
"escape-goat": "^3",
Expand Down
4 changes: 2 additions & 2 deletions packages/browser-destination-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/browser-destination-runtime",
"version": "1.51.0",
"version": "1.53.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -62,7 +62,7 @@
}
},
"dependencies": {
"@segment/actions-core": "^3.122.0"
"@segment/actions-core": "^3.124.0"
},
"devDependencies": {
"@segment/analytics-next": "*"
Expand Down
4 changes: 2 additions & 2 deletions packages/browser-destinations/destinations/1flow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-1flow",
"version": "1.34.0",
"version": "1.36.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-adobe-target",
"version": "1.52.0",
"version": "1.54.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -16,7 +16,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-algolia-plugins",
"version": "1.29.0",
"version": "1.31.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-amplitude-plugins",
"version": "1.52.0",
"version": "1.54.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-braze-cloud-plugins",
"version": "1.55.0",
"version": "1.58.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,8 +15,8 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/analytics-browser-actions-braze": "^1.55.0",
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/analytics-browser-actions-braze": "^1.58.0",
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/browser-destinations/destinations/braze/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-braze",
"version": "1.55.0",
"version": "1.58.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -35,8 +35,8 @@
"dependencies": {
"@braze/web-sdk": "npm:@braze/web-sdk@^4.1.0",
"@braze/web-sdk-v3": "npm:@braze/web-sdk@^3.5.1",
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/actions-core": "^3.124.0",
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ exports[`loads different versions from CDN undefined version:
1`] = `
NodeList [
<script
src="https://js.appboycdn.com/web-sdk/4.8/braze.no-module.min.js"
src="https://js.appboycdn.com/web-sdk/4.10/braze.no-module.min.js"
status="loaded"
type="text/javascript"
/>,
Expand Down
9 changes: 7 additions & 2 deletions packages/browser-destinations/destinations/braze/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare global {
}
}

const defaultVersion = '4.8'
const defaultVersion = '4.10'

const presets: DestinationDefinition['presets'] = [
{
Expand Down Expand Up @@ -85,6 +85,10 @@ export const destination: BrowserDestinationDefinition<Settings, BrazeDestinatio
{
value: '4.8',
label: '4.8'
},
{
value: '4.10',
label: '4.10'
}
],
default: defaultVersion,
Expand Down Expand Up @@ -113,7 +117,8 @@ export const destination: BrowserDestinationDefinition<Settings, BrazeDestinatio
{ label: 'US-08 (https://dashboard-08.braze.com)', value: 'sdk.iad-08.braze.com' },
{ label: 'US-09 (https://dashboard-09.braze.com)', value: 'sdk.iad-09.braze.com' },
{ label: 'EU-01 (https://dashboard-01.braze.eu)', value: 'sdk.fra-01.braze.eu' },
{ label: 'EU-02 (https://dashboard-02.braze.eu)', value: 'sdk.fra-02.braze.eu' }
{ label: 'EU-02 (https://dashboard-02.braze.eu)', value: 'sdk.fra-02.braze.eu' },
{ label: 'ID-01 (https://dashboard-01.braze.id)', value: 'sdk.apse-01.braze.id' }
],
default: 'sdk.iad-01.braze.com',
required: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-bucket",
"version": "1.32.0",
"version": "1.34.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -16,8 +16,8 @@
"typings": "./dist/esm",
"dependencies": {
"@bucketco/tracking-sdk": "^2.0.0",
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/actions-core": "^3.124.0",
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-cdpresolution",
"version": "1.39.0",
"version": "1.41.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-commandbar",
"version": "1.52.0",
"version": "1.54.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,8 +15,8 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.0"
"@segment/actions-core": "^3.124.0",
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# @segment/analytics-browser-actions-contentstack-browser-plugins

The Contentstack Browser Plugins browser action destination for use with @segment/analytics-next.

## License

MIT License

Copyright (c) 2024 Segment

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

## Contributing

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@segment/analytics-browser-actions-contentstack-browser-plugins",
"version": "1.2.0",
"license": "MIT",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"main": "./dist/cjs",
"module": "./dist/esm",
"scripts": {
"build": "yarn build:esm && yarn build:cjs",
"build:cjs": "tsc --module commonjs --outDir ./dist/cjs",
"build:esm": "tsc --outDir ./dist/esm"
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.53.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
}
}
Loading

0 comments on commit 6729bf1

Please sign in to comment.