Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shell/ci/release/dryrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ if ! git diff --quiet "$OLD_CIRCLE_BRANCH"; then

GITHUB_TOKEN="$(github_token)"
if [[ -z $GITHUB_TOKEN ]]; then
warn "Failed to read Github personal access token" >&2
warn "Failed to read GitHub token" >&2
fi

run_gh auth setup-git

MISE_GITHUB_TOKEN="$GITHUB_TOKEN" GH_TOKEN="$GITHUB_TOKEN" \
yarn --frozen-lockfile semantic-release --dry-run

Expand Down
4 changes: 3 additions & 1 deletion shell/ci/release/pre-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ if [[ $CIRCLE_BRANCH != "$prereleasesBranch" ]] && [[ $DRYRUN == "false" ]]; the
exit 0
fi

run_gh auth setup-git

# If we're in dry-run mode, skip creating the release.
if [[ $DRYRUN == "true" ]]; then
exit 0
Expand All @@ -85,7 +87,7 @@ if [[ $COMMIT_MESSAGE =~ "chore: Release" ]]; then
# Retrieve the GH_TOKEN
GH_TOKEN=$(github_token)
if [[ -z $GH_TOKEN ]]; then
echo "Failed to read Github personal access token" >&2
echo "Failed to read GitHub token" >&2
fi
# Unset NPM_TOKEN to force it to use the configured ~/.npmrc
NPM_TOKEN='' GH_TOKEN=$GH_TOKEN \
Expand Down
4 changes: 3 additions & 1 deletion shell/ci/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ source "${LIB_DIR}/logging.sh"
# Retrieve the GH_TOKEN
GITHUB_TOKEN="$(github_token)"
if [[ -z $GITHUB_TOKEN ]]; then
error "Failed to read GitHub personal access token"
error "Failed to read GitHub token"
fi

run_gh auth setup-git

send_failure_notification() {
if [[ -z $RELEASE_FAILURE_SLACK_CHANNEL ]]; then
fatal "Failed to release"
Expand Down