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
23 changes: 18 additions & 5 deletions .github/workflows/subworkflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,21 @@ jobs:
LABELS: "${{ steps.extract_labels.outputs.labels }}"
VERSION: "${{ steps.version_tag.outputs.version }}"
PUSH_TAG: "${{ inputs.push-tag }}"
RUN_LINT: "${{ inputs.run-lint }}"
RUN_TESTS: "${{ inputs.run-tests }}"
RUN_LINT: "${{ inputs.run-lint }}"
RUN_TESTS: "${{ inputs.run-tests }}"
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
SENTRY_ORG: "${{ secrets.SENTRY_ORG }}"
SENTRY_PROJECT: "${{ secrets.SENTRY_PROJECT }}"
with:
env: |
LABELS
VERSION
PUSH_TAG
RUN_LINT
RUN_TESTS
SENTRY_AUTH_TOKEN
SENTRY_ORG
SENTRY_PROJECT
runCmd: |
set -e

Expand All @@ -98,14 +104,20 @@ jobs:
pnpm test:coverage
fi

# Build
pnpm run build

# Tag
MILESTONE=$(echo "$LABELS" | grep -E 'major-version|minor-version' | head -1)
VERSION_NEW=$(pnpm run bumpManifestVer "$MILESTONE" "$VERSION" | tail -n 1)
pnpm prettier --write manifest.json
git tag -a $VERSION_NEW -m "Version $VERSION_NEW"

# Build
if [ "$PUSH_TAG" != "true" ]; then
## Disable Sentry Release if not pushing
export SENTRY_DISABLED="true"
fi
pnpm run build

# Push
if [ "$PUSH_TAG" = "true" ]; then
git push origin $VERSION_NEW
fi
Expand All @@ -114,6 +126,7 @@ jobs:
working-directory: dist
run: |
cp ../manifest.json .
rm **/*.js.map || echo "No source maps to remove"
zip -rq ../app.zip *

- name: Upload package
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ dist-ssr
*.local
/coverage
.pnpm-store

# Sentry Config File
.env.sentry-build-plugin
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
"@deskpro/app-sdk": "6.0.3",
"@deskpro/deskpro-ui": "^8.3.1",
"@heroicons/react": "1.0.6",
"@sentry/react": "^9.22.0",
"@sentry/vite-plugin": "^3.5.0",
"@swc/core": "^1.11.21",
"polished": "^4.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^3.1.4",
"react-resize-observer": "^1.1.1"
},
"devDependencies": {
Expand Down
Loading
Loading