-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We now release in two steps: 1. Run script/prepare-release to submit a PR with the version bump 2. Run script/release to tag the current main's HEAD and release it
- Loading branch information
1 parent
b97a816
commit ed2e2f4
Showing
8 changed files
with
110 additions
and
1,129 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
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
SCRIPTDIR=$(cd "$(dirname "$0")"; pwd) | ||
# shellcheck source=SCRIPTDIR/lib/utils | ||
source "$SCRIPTDIR/lib/utils" | ||
|
||
if ! has gh; then | ||
abort "Please install GitHub CLI first (https://cli.github.com)." | ||
fi |
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# A collection of helpers for our scripts. | ||
|
||
function has() { | ||
type "$1" >/dev/null 2>&1 | ||
} | ||
|
||
function abort() { | ||
printf "${1}\n">&2 | ||
exit 1 | ||
} |
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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
./script/check-release-dependencies | ||
|
||
branch="chore/prepare-release-$(git rev-parse HEAD)" | ||
git checkout -b "$branch" | ||
|
||
yarn version | ||
|
||
tag=$(git describe --abbrev=0 --tags) | ||
|
||
git tag --delete "$tag" | ||
|
||
gh pr create \ | ||
--title "Prepare $tag" \ | ||
--body "Bump version to $tag." |
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,5 @@ | ||
#!/usr/bin/env node | ||
|
||
const { version } = require("../package.json"); | ||
|
||
console.log(version); |
Oops, something went wrong.