From 61af311048752c46c73f663d49c3324450ce23ec Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 26 Jun 2024 11:39:33 +0800 Subject: [PATCH] build: add sentry token --- .github/workflows/build.yml | 2 ++ packages/eslint-config/package.json | 2 +- .../components/problemconfig/ProblemConfigEditor.tsx | 4 ++-- packages/ui-default/package.json | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f34de607..80f4e4a11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,6 +67,8 @@ jobs: else parallel --tty -j+0 yarn ::: lint:ci build test fi + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: Publish if: ${{ github.event_name == 'push' }} run: node -r @hydrooj/register build/publish.ts diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 2989f4751..2582dc23a 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -4,7 +4,7 @@ "license": "MIT", "main": "react.yaml", "dependencies": { - "@stylistic/eslint-plugin": "^2.2.2", + "@stylistic/eslint-plugin": "^2.3.0", "@typescript-eslint/eslint-plugin": "^7.14.1", "@typescript-eslint/parser": "^7.14.1", "eslint-config-airbnb": "^19.0.4", diff --git a/packages/ui-default/components/problemconfig/ProblemConfigEditor.tsx b/packages/ui-default/components/problemconfig/ProblemConfigEditor.tsx index d381d605b..e08e18c2d 100644 --- a/packages/ui-default/components/problemconfig/ProblemConfigEditor.tsx +++ b/packages/ui-default/components/problemconfig/ProblemConfigEditor.tsx @@ -87,8 +87,8 @@ export function configYamlFormat(config: ProblemConfigFile) { export default connect(mapStateToProps, mapDispatchToProps)(class MonacoEditor extends React.PureComponent { disposable = []; containerElement: HTMLElement; - private __preventUpdate = false; - private __preventFormat = false; + __preventUpdate = false; + __preventFormat = false; editor: editor.IStandaloneCodeEditor; model: editor.ITextModel; diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index e377b8ddb..076e06b3c 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -25,8 +25,8 @@ "@fontsource/source-code-pro": "^5.0.18", "@fontsource/ubuntu-mono": "^5.0.20", "@hydrooj/utils": "workspace:^", - "@sentry/browser": "^8.11.0", - "@sentry/webpack-plugin": "^2.20.0", + "@sentry/browser": "^8.12.0", + "@sentry/webpack-plugin": "^2.20.1", "@simplewebauthn/browser": "7.4.0", "@svgr/webpack": "^8.1.0", "@types/gulp-if": "^0.0.34",