-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1462 from bugsnag/release/v7.10.5
Release v7.10.5
- Loading branch information
Showing
182 changed files
with
6,814 additions
and
273 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
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,43 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
error_missing_field () { | ||
echo "Missing required env var: $1" | ||
exit 1 | ||
} | ||
|
||
# Ensure all required variables are set before doing any work | ||
if [[ -z ${GITHUB_USER:-} ]]; then error_missing_field "GITHUB_USER"; fi | ||
if [[ -z ${GITHUB_ACCESS_TOKEN:-} ]]; then error_missing_field "GITHUB_ACCESS_TOKEN"; fi | ||
if [[ -z ${RELEASE_BRANCH:-} ]]; then error_missing_field "RELEASE_BRANCH"; fi | ||
if [[ -z ${VERSION:-} ]]; then error_missing_field "VERSION"; fi | ||
if [[ -z ${AWS_ACCESS_KEY_ID:-} ]]; then error_missing_field "AWS_ACCESS_KEY_ID"; fi | ||
if [[ -z ${AWS_SECRET_ACCESS_KEY:-} ]]; then error_missing_field "AWS_SECRET_ACCESS_KEY"; fi | ||
|
||
git clone --single-branch \ | ||
--branch "$RELEASE_BRANCH" \ | ||
https://"$GITHUB_USER":"$GITHUB_ACCESS_TOKEN"@github.com/bugsnag/bugsnag-js.git | ||
|
||
cd /app/bugsnag-js | ||
|
||
# "ci" rather than "install" ensures the process doesn't make the work tree dirty by modifying lockfiles | ||
npm ci | ||
npm run bootstrap -- --ci | ||
|
||
# check if the browser package changed – if it didn't we don't need to upload to the CDN | ||
BROWSER_PACKAGE_CHANGED=$(npx lerna changed --parseable | grep -c packages/js$ || test $? = 1;) | ||
|
||
case $VERSION in | ||
"prerelease" | "prepatch" | "preminor" | "premajor") | ||
npx lerna publish "$VERSION" --dist-tag next | ||
;; | ||
|
||
*) | ||
npx lerna publish "$VERSION" | ||
;; | ||
esac | ||
|
||
if [ "$BROWSER_PACKAGE_CHANGED" -eq 1 ]; then | ||
npm run cdn-upload | ||
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
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,14 @@ | ||
FROM node:lts-alpine | ||
RUN apk add --update git bash python3 make gcc g++ openssh-client curl | ||
|
||
RUN addgroup -S admins | ||
RUN adduser -S releaser -G admins | ||
|
||
WORKDIR /app | ||
|
||
RUN chown -R releaser:admins /app | ||
USER releaser | ||
|
||
COPY ./bin/release.sh ./ | ||
|
||
CMD ./release.sh |
Oops, something went wrong.