From d1dc6eb800b2639751c364ac6b2e38f8e4f79c91 Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Fri, 28 May 2021 14:42:46 +0200 Subject: [PATCH 1/3] chore: update dependencies --- webui/package.json | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/webui/package.json b/webui/package.json index c3b19af..ab7a316 100644 --- a/webui/package.json +++ b/webui/package.json @@ -3,12 +3,12 @@ "version": "0.1.0", "private": true, "dependencies": { - "react": "^16.11.0", - "react-dom": "^16.11.0", - "react-modal": "^3.11.1", - "react-router-dom": "^5.1.2", - "react-scripts": "0.9.5", - "react-toastify": "^5.5.0" + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-modal": "^3.13.1", + "react-router-dom": "^5.2.0", + "react-scripts": "4.0.3", + "react-toastify": "^7.0.4" }, "devDependencies": {}, "scripts": { @@ -16,5 +16,17 @@ "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] } } From 0c740538617742949db137cf523dcc7a631eb1bd Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Fri, 28 May 2021 14:50:28 +0200 Subject: [PATCH 2/3] feat: add pr preview ci --- .github/workflows/preview.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..4714620 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,41 @@ +name: Preview webui + +on: + pull_request_target: + paths: + - 'webui/**' + types: [opened, synchronize, reopened, closed] + +jobs: + preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: | + cd webui/ + npm install + + - name: Build webui + run: | + cd webui/ + npm run build + + - uses: afc163/surge-preview@v1 + id: preview_step + with: + surge_token: ${{ secrets.SURGE_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + teardown: 'true' + dist: webui/build + build: | + echo "dummy" + + - name: Get the preview_url + run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" \ No newline at end of file From 29d573b3e35449bbf1b831bb3f4adb4d953551b5 Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Fri, 28 May 2021 14:52:07 +0200 Subject: [PATCH 3/3] Revert "feat: add pr preview ci" This reverts commit 0c740538617742949db137cf523dcc7a631eb1bd. --- .github/workflows/preview.yml | 41 ----------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index 4714620..0000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Preview webui - -on: - pull_request_target: - paths: - - 'webui/**' - types: [opened, synchronize, reopened, closed] - -jobs: - preview: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: | - cd webui/ - npm install - - - name: Build webui - run: | - cd webui/ - npm run build - - - uses: afc163/surge-preview@v1 - id: preview_step - with: - surge_token: ${{ secrets.SURGE_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} - teardown: 'true' - dist: webui/build - build: | - echo "dummy" - - - name: Get the preview_url - run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" \ No newline at end of file