Deprecate SENTRY_RELEASE since we use package.json now
This commit is contained in:
@@ -32,10 +32,6 @@ SENTRY_DSN=
|
|||||||
# current bundle was made from.
|
# current bundle was made from.
|
||||||
SENTRY_DIST=test
|
SENTRY_DIST=test
|
||||||
|
|
||||||
# Populates the `release` value on Sentry events. This is the version of the
|
|
||||||
# app specified in the package.json.
|
|
||||||
SENTRY_RELEASE=dev
|
|
||||||
|
|
||||||
# Bitdrift API key. If undefined, Bitdrift will be disabled.
|
# Bitdrift API key. If undefined, Bitdrift will be disabled.
|
||||||
EXPO_PUBLIC_BITDRIFT_API_KEY=
|
EXPO_PUBLIC_BITDRIFT_API_KEY=
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "SENTRY_RELEASE=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
@@ -64,6 +63,5 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
EXPO_PUBLIC_BUNDLE_IDENTIFIER=${{ steps.vars.outputs.sha_short }}
|
EXPO_PUBLIC_BUNDLE_IDENTIFIER=${{ steps.vars.outputs.sha_short }}
|
||||||
SENTRY_DIST=${{ steps.vars.outputs.SENTRY_DIST }}
|
SENTRY_DIST=${{ steps.vars.outputs.SENTRY_DIST }}
|
||||||
SENTRY_RELEASE=${{ steps.vars.outputs.SENTRY_RELEASE }}
|
|
||||||
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
|
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
|
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
|
||||||
|
|||||||
@@ -74,10 +74,9 @@ jobs:
|
|||||||
id: sentry
|
id: sentry
|
||||||
run: |
|
run: |
|
||||||
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "SENTRY_RELEASE=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: 🏗️ EAS Build
|
- name: 🏗️ EAS Build
|
||||||
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_RELEASE=${{ steps.sentry.outputs.SENTRY_RELEASE }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} yarn use-build-number-with-bump eas build -p android --profile ${{ inputs.profile || 'testflight-android' }} --local --output build.aab --non-interactive
|
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} yarn use-build-number-with-bump eas build -p android --profile ${{ inputs.profile || 'testflight-android' }} --local --output build.aab --non-interactive
|
||||||
|
|
||||||
- name: ✍️ Rename Testflight bundle
|
- name: ✍️ Rename Testflight bundle
|
||||||
if: ${{ inputs.profile != 'production' }}
|
if: ${{ inputs.profile != 'production' }}
|
||||||
@@ -139,7 +138,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 🏗️ Build Production APK
|
- name: 🏗️ Build Production APK
|
||||||
if: ${{ inputs.profile == 'production' }}
|
if: ${{ inputs.profile == 'production' }}
|
||||||
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_RELEASE=${{ steps.sentry.outputs.SENTRY_RELEASE }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} yarn use-build-number-with-bump eas build -p android --profile production-apk --local --output build.apk --non-interactive
|
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} yarn use-build-number-with-bump eas build -p android --profile production-apk --local --output build.apk --non-interactive
|
||||||
|
|
||||||
- name: 🚀 Upload Production APK Artifact
|
- name: 🚀 Upload Production APK Artifact
|
||||||
id: upload-artifact-production-apk
|
id: upload-artifact-production-apk
|
||||||
|
|||||||
@@ -86,10 +86,9 @@ jobs:
|
|||||||
id: sentry
|
id: sentry
|
||||||
run: |
|
run: |
|
||||||
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "SENTRY_RELEASE=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: 🏗️ EAS Build
|
- name: 🏗️ EAS Build
|
||||||
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_RELEASE=${{ steps.sentry.outputs.SENTRY_RELEASE }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} yarn use-build-number-with-bump eas build -p ios --profile ${{ inputs.profile || 'testflight' }} --local --output build.ipa --non-interactive
|
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} yarn use-build-number-with-bump eas build -p ios --profile ${{ inputs.profile || 'testflight' }} --local --output build.ipa --non-interactive
|
||||||
|
|
||||||
- name: 🚀 Deploy
|
- name: 🚀 Deploy
|
||||||
run: eas submit -p ios --non-interactive --path build.ipa
|
run: eas submit -p ios --non-interactive --path build.ipa
|
||||||
|
|||||||
@@ -114,11 +114,10 @@ jobs:
|
|||||||
id: sentry
|
id: sentry
|
||||||
run: |
|
run: |
|
||||||
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
echo "SENTRY_DIST=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "SENTRY_RELEASE=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: 🏗️ Create Bundle
|
- name: 🏗️ Create Bundle
|
||||||
if: ${{ !steps.fingerprint.outputs.includes-changes }}
|
if: ${{ !steps.fingerprint.outputs.includes-changes }}
|
||||||
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_RELEASE=${{ steps.sentry.outputs.SENTRY_RELEASE }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} EXPO_PUBLIC_ENV="${{ inputs.channel || 'testflight' }}" yarn export
|
run: SENTRY_DIST=${{ steps.sentry.outputs.SENTRY_DIST }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} EXPO_PUBLIC_ENV="${{ inputs.channel || 'testflight' }}" yarn export
|
||||||
|
|
||||||
- name: 📦 Package Bundle and 🚀 Deploy
|
- name: 📦 Package Bundle and 🚀 Deploy
|
||||||
if: ${{ !steps.fingerprint.outputs.includes-changes }}
|
if: ${{ !steps.fingerprint.outputs.includes-changes }}
|
||||||
|
|||||||
+1
-4
@@ -33,9 +33,6 @@ ARG RENDER_GIT_COMMIT
|
|||||||
#
|
#
|
||||||
ARG SENTRY_AUTH_TOKEN
|
ARG SENTRY_AUTH_TOKEN
|
||||||
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN:-unknown}
|
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN:-unknown}
|
||||||
# Will fall back to package.json#version, but this is handled elsewhere
|
|
||||||
ARG SENTRY_RELEASE
|
|
||||||
ENV SENTRY_RELEASE=$SENTRY_RELEASE
|
|
||||||
ARG SENTRY_DIST
|
ARG SENTRY_DIST
|
||||||
# Default to RENDER_GIT_COMMIT if not set by GitHub workflows
|
# Default to RENDER_GIT_COMMIT if not set by GitHub workflows
|
||||||
ENV SENTRY_DIST=${SENTRY_DIST:-$RENDER_GIT_COMMIT}
|
ENV SENTRY_DIST=${SENTRY_DIST:-$RENDER_GIT_COMMIT}
|
||||||
@@ -66,7 +63,7 @@ RUN \. "$NVM_DIR/nvm.sh" && \
|
|||||||
yarn && \
|
yarn && \
|
||||||
yarn intl:build 2>&1 | tee i18n.log && \
|
yarn intl:build 2>&1 | tee i18n.log && \
|
||||||
if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compile errors!\n\n"; fi && \
|
if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compile errors!\n\n"; fi && \
|
||||||
EXPO_PUBLIC_BUNDLE_IDENTIFIER=$EXPO_PUBLIC_BUNDLE_IDENTIFIER EXPO_PUBLIC_BUNDLE_DATE=$() SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN SENTRY_RELEASE=$SENTRY_RELEASE SENTRY_DIST=$SENTRY_DIST SENTRY_DSN=$SENTRY_DSN yarn build-web
|
EXPO_PUBLIC_BUNDLE_IDENTIFIER=$EXPO_PUBLIC_BUNDLE_IDENTIFIER EXPO_PUBLIC_BUNDLE_DATE=$() SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN SENTRY_DIST=$SENTRY_DIST SENTRY_DSN=$SENTRY_DSN yarn build-web
|
||||||
|
|
||||||
# DEBUG
|
# DEBUG
|
||||||
RUN find ./bskyweb/static && find ./web-build/static
|
RUN find ./bskyweb/static && find ./web-build/static
|
||||||
|
|||||||
@@ -63,12 +63,6 @@ export const CHAT_PROXY_DID: Did =
|
|||||||
*/
|
*/
|
||||||
export const SENTRY_DSN: string | undefined = process.env.SENTRY_DSN
|
export const SENTRY_DSN: string | undefined = process.env.SENTRY_DSN
|
||||||
|
|
||||||
/**
|
|
||||||
* Populates the `release` value on Sentry events. This is the version of the
|
|
||||||
* app specified in the package.json.
|
|
||||||
*/
|
|
||||||
export const SENTRY_RELEASE: string = process.env.SENTRY_RELEASE || 'dev'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Populates the `dist` value on Sentry events. We use the full commit hash the
|
* Populates the `dist` value on Sentry events. We use the full commit hash the
|
||||||
* current bundle was made from.
|
* current bundle was made from.
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import * as env from '#/env'
|
|||||||
* - `dev`
|
* - `dev`
|
||||||
* - `1.99.0`
|
* - `1.99.0`
|
||||||
*/
|
*/
|
||||||
const release = env.SENTRY_RELEASE || pkgJson.version
|
const release = pkgJson.version
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The latest deployed commit hash
|
* The latest deployed commit hash
|
||||||
|
|||||||
+2
-2
@@ -54,8 +54,8 @@ module.exports = async function (env, argv) {
|
|||||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||||
release: {
|
release: {
|
||||||
// env is undefined for Render.com builds, fall back
|
// env is undefined for Render.com builds, fall back
|
||||||
name: process.env.SENTRY_RELEASE || version,
|
name: version,
|
||||||
dist: process.env.SENTRY_DIST,
|
dist: process.env.SENTRY_DIST || 'dev',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user