-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(publish): Add version bump script (#53)
- Add Lerna to our repo to use it as a mechanism of bumping all our package versions. We need this for the craft publishing process. - Add a pre-release script we need for craft later on
- Loading branch information
Showing
13 changed files
with
2,963 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": "0.0.0-alpha.0", | ||
"packages": "packages/*", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@sentry-internal/integration-tests", | ||
"version": "0.0.0", | ||
"version": "0.0.0-alpha.0", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
|
@@ -11,17 +11,17 @@ | |
"check:types": "tsc --project ./tsconfig.json --noEmit" | ||
}, | ||
"dependencies": { | ||
"@sentry-internal/eslint-config": "0.0.0-alpha.0", | ||
"@sentry-internal/sentry-unplugin-tsconfig": "0.0.0-alpha.0", | ||
"@sentry/sentry-unplugin": "0.0.0-alpha.0", | ||
"@swc/jest": "^0.2.21", | ||
"@types/jest": "^28.1.3", | ||
"@sentry/sentry-unplugin": "*", | ||
"@types/webpack4": "npm:@types/[email protected]", | ||
"@sentry-internal/eslint-config": "*", | ||
"@sentry-internal/sentry-unplugin-tsconfig": "*", | ||
"esbuild": "0.14.49", | ||
"eslint": "^8.18.0", | ||
"jest": "^28.1.3", | ||
"npm-run-all": "4.1.5", | ||
"rollup": "2.77.0", | ||
"eslint": "^8.18.0", | ||
"ts-node": "^10.9.1", | ||
"vite": "3.0.0", | ||
"webpack": "5.74.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@sentry-internal/sentry-unplugin-tsconfig", | ||
"version": "0.0.0", | ||
"version": "0.0.0-alpha.0", | ||
"license": "MIT", | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -eux | ||
|
||
# Move to the project root | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
cd $SCRIPT_DIR/.. | ||
OLD_VERSION="${1}" | ||
NEW_VERSION="${2}" | ||
|
||
# Do not tag and commit changes made by "npm version" | ||
export npm_config_git_tag_version=false | ||
|
||
yarn install --frozen-lockfile | ||
# --force-publish - force publish all packages, this will skip the lerna changed check for changed packages and forces a package that didn't have a git diff change to be updated. | ||
# --exact - specify updated dependencies in updated packages exactly (with no punctuation), instead of as semver compatible (with a ^). | ||
# --no-git-tag-version - don't commit changes to package.json files and don't tag the release. | ||
# --no-push - don't push committed and tagged changes. | ||
# --include-merged-tags - include tags from merged branches when detecting changed packages. | ||
# --yes - skip all confirmation prompts | ||
yarn lerna version --force-publish --exact --no-git-tag-version --no-push --include-merged-tags --yes "${NEW_VERSION}" |
Oops, something went wrong.