Skip to content
Draft
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
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down