From e13492723f44ce808547515d1ac8957a083968eb Mon Sep 17 00:00:00 2001 From: Vio Date: Tue, 1 Feb 2022 22:29:05 +0100 Subject: [PATCH] UPDATE: test --- .github/workflows/build.yaml | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 05d13957..067dc565 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,15 +11,18 @@ jobs: with: node-version: '16.x' + - uses: hmarr/debug-action@v2 + # Install dependencies - run: npm ci # Build and output webpack stats to artifacts/webpack-stats.json - - run: npm run build --if-present + - run: npm run build -- --json webpack-stats.json # Send webpack stats and build information to RelativeCI - name: Send webpack stats to RelativeCI - uses: relative-ci/agent-action@293e8b50a670e7ed63c5c6d1ba7ccf752ec93de2 + uses: relative-ci/agent-action@fa0245c07ea6a707e1e1136a300bd7f7514a3c4a with: - webpackStatsFile: ./artifacts/webpack-stats.json + token: ${{ secrets.GITHUB_TOKEN }} key: ${{ secrets.RELATIVE_CI_KEY }} + webpackStatsFile: ./webpack-stats.json diff --git a/package.json b/package.json index 9626eda5..5d6d088b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "start": "webpack-dev-server", - "build": "webpack --mode production --json artifacts/webpack-stats.json", + "build": "webpack --mode production", "test": "echo \"Error: no test specified\" && exit 0" }, "keywords": [],