Skip to content

Commit

Permalink
Merge branch 'segmentio:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
askkaz authored Jul 12, 2024
2 parents effbb8e + 476d5ba commit a893a44
Show file tree
Hide file tree
Showing 174 changed files with 10,422 additions and 664 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled to ensure the commit history for the repository is available to the action
fetch-tags: true

- name: Setup git credentials
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Generate Release Tag
id: get-release-tag
run: ./scripts/generate-release-tags.sh
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/version-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: main
depth: 0
fetch-depth: 0
fetch-tags: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down Expand Up @@ -51,22 +51,26 @@ jobs:
- name: Commit and push
id: commit_and_push
run: |
git add .
count=$(git diff --cached --stat)
if [ -z "$count" ]; then
echo "No changes to commit"
echo "SKIP_PR=true" >> $GITHUB_OUTPUT
exit 0
fi
git add .
git commit -m "chore: version packages"
packages_published=$(git status -s -uno| grep "package.json" |awk '{print $2}'| xargs jq -r '.name + "@" + .version' --argjson null {})
echo "packages_published<<EOF" >> $GITHUB_OUTPUT
echo "$packages_published" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
git commit -m "Publish"
git push origin ${{ github.event.inputs.branch }}
- name: Create PR
if: ${{ steps.commit_and_push.outputs.SKIP_PR != 'true' }}
run: |
packages_published=$(git status -s -uno| grep "package.json" |awk '{print $2}'| xargs jq -r '.name + "@" + .version' --argjson null {})
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" "$packages_published")"
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"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion docs/actions_tester.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Getting started with actions tester is quite easy. For cloud action destinations

For web action destinations, use the following command instead:

`./bin/run serve --directory ./packages/browser-destinations/src/destinations --browser`
`./bin/run serve --directory ./packages/browser-destinations/destinations --browser`

You may either select your new action destination via the command line menu, or optionally pass it via enviornment variable to skip that step.

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"shared": "yarn workspace @segment/actions-shared",
"subscriptions": "yarn workspace @segment/destination-subscriptions",
"test": "nx run-many -t test",
"test:clear-cache": "nx clear-cache",
"test-browser": "bash scripts/test-browser.sh",
"test-partners": "lerna run test --stream --ignore @segment/actions-core --ignore @segment/actions-cli --ignore @segment/ajv-human-errors",
"typecheck": "lerna run typecheck --stream",
Expand Down Expand Up @@ -87,8 +88,8 @@
}
},
"lint-staged": {
"**/src/destinations/**/index.ts": [
"./bin/run generate:types",
"**/{browser-destinations,destinations}/**/*.ts": [
"./bin/run generate:types -p",
"git add **/generated-types.ts"
],
"!(**/templates/**)/*.ts": [
Expand Down
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.102.0",
"version": "1.103.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.121.0",
"@segment/actions-core": "^3.122.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.50.0",
"version": "1.51.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -62,7 +62,7 @@
}
},
"dependencies": {
"@segment/actions-core": "^3.121.0"
"@segment/actions-core": "^3.122.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.33.0",
"version": "1.34.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.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.51.0",
"version": "1.52.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -16,7 +16,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.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.28.0",
"version": "1.29.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.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.51.0",
"version": "1.52.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.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.54.0",
"version": "1.55.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,8 +15,8 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/analytics-browser-actions-braze": "^1.54.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/analytics-browser-actions-braze": "^1.55.0",
"@segment/browser-destination-runtime": "^1.51.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.54.0",
"version": "1.55.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.121.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.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-bucket",
"version": "1.31.0",
"version": "1.32.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.121.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.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.38.0",
"version": "1.39.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.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.51.0",
"version": "1.52.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,8 +15,8 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/actions-core": "^3.121.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.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-devrev",
"version": "1.38.0",
"version": "1.39.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.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-friendbuy",
"version": "1.52.0",
"version": "1.53.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,9 +15,9 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/actions-core": "^3.121.0",
"@segment/actions-shared": "^1.102.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/actions-shared": "^1.103.0",
"@segment/browser-destination-runtime": "^1.51.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-fullstory",
"version": "1.53.0",
"version": "1.54.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -16,8 +16,8 @@
"typings": "./dist/esm",
"dependencies": {
"@fullstory/browser": "^2.0.3",
"@segment/actions-core": "^3.121.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.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-google-analytics-4",
"version": "1.58.0",
"version": "1.59.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,8 +15,8 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/actions-core": "^3.121.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.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-google-campaign-manager",
"version": "1.42.0",
"version": "1.43.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,7 +15,7 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/browser-destination-runtime": "^1.51.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/browser-destinations/destinations/heap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@segment/analytics-browser-actions-heap",
"version": "1.51.0",
"version": "1.52.0",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand All @@ -15,8 +15,8 @@
},
"typings": "./dist/esm",
"dependencies": {
"@segment/actions-core": "^3.121.0",
"@segment/browser-destination-runtime": "^1.50.0"
"@segment/actions-core": "^3.122.0",
"@segment/browser-destination-runtime": "^1.51.0"
},
"peerDependencies": {
"@segment/analytics-next": ">=1.55.0"
Expand Down
Loading

0 comments on commit a893a44

Please sign in to comment.