Skip to content

Commit

Permalink
channels-1094-canary (segmentio#2120)
Browse files Browse the repository at this point in the history
* feat: Creating a canary script so that publishing canary versions of the
action-destination project is easier.

* chore: Sorting scripts alphabetically.
  • Loading branch information
cogwizzle authored Jul 2, 2024
1 parent cb6b440 commit 717922f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,29 @@
"node": "14 || ^18.12"
},
"scripts": {
"alpha": "lerna version prerelease --allow-branch $(git branch --show-current) --preid $(git branch --show-current) --no-push --no-git-tag-version",
"bootstrap": "lerna bootstrap",
"browser": "yarn workspace @segment/browser-destinations",
"cloud": "yarn workspace @segment/action-destinations",
"shared": "yarn workspace @segment/actions-shared",
"build": "nx run-many -t build && yarn build:browser-bundles",
"build:browser-bundles": "nx build @segment/destinations-manifest && nx build-web @segment/browser-destinations",
"canary": "./scripts/canary.sh",
"clean": "sh scripts/clean.sh",
"cli": "yarn workspace @segment/actions-cli",
"cli-internal": "yarn workspace @segment/actions-cli-internal",
"cloud": "yarn workspace @segment/action-destinations",
"core": "yarn workspace @segment/actions-core",
"bootstrap": "lerna bootstrap",
"build": "nx run-many -t build && yarn build:browser-bundles",
"build:browser-bundles": "nx build @segment/destinations-manifest && nx build-web @segment/browser-destinations",
"types": "./bin/run generate:types",
"validate": "./bin/run validate",
"lint": "ls -d ./packages/* | xargs -I {} eslint '{}/**/*.ts' --cache",
"postversion": "bash scripts/postversion.sh",
"prepare": "husky install",
"release": "bash scripts/release.sh",
"shared": "yarn workspace @segment/actions-shared",
"subscriptions": "yarn workspace @segment/destination-subscriptions",
"test": "nx run-many -t test",
"test-partners": "lerna run test --stream --ignore @segment/actions-core --ignore @segment/actions-cli --ignore @segment/ajv-human-errors",
"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",
"alpha": "lerna version prerelease --allow-branch $(git branch --show-current) --preid $(git branch --show-current) --no-push --no-git-tag-version",
"release": "bash scripts/release.sh",
"prepare": "husky install",
"postversion": "bash scripts/postversion.sh",
"clean": "sh scripts/clean.sh"
"types": "./bin/run generate:types",
"validate": "./bin/run validate"
},
"devDependencies": {
"@peculiar/webcrypto": "^1.2.3",
Expand Down
7 changes: 7 additions & 0 deletions scripts/canary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

branch=$(git branch --show-current)
echo "Publishing canary release for branch: \"$branch\"."
npx lerna publish --canary --preid "$branch" --include-merged-tags

0 comments on commit 717922f

Please sign in to comment.