Skip to content

Commit

Permalink
doc: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jun 1, 2024
1 parent 0fd6d4d commit 1d8bd19
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ on:
jobs:
build:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: 'latest'

# Install dependencies
- run: npm ci

# Build and output bundle stats
# see https://relative-ci.com/documentation/setup/agent/github-action/#step-1-output-bundle-stats-json-file
# Learn more: https://relative-ci.com/documentation/setup/agent/github-action#step-1-output-bundle-stats-json-file
- run: npm run build -- --json webpack-stats

- name: Send bundle stats to RelativeCI
Expand Down Expand Up @@ -78,20 +78,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: 'latest'
# Install dependencies
- run: npm ci
# Build and output bundle stats to webpack-stats.json
# Learn more: https://relative-ci.com/documentation/setup/agent/github-action#step-1-output-bundle-stats-json-file
- run: npm run build --json webpack-stats.json
# Upload webpack-stats.json to use on relative-ci.yaml workflow
- name: Upload bundle stats artifact
uses: relative-ci/agent-upload-artifact-action@v1
uses: relative-ci/agent-upload-artifact-action@v2
with:
webpackStatsFile: ./webpack-stats.json
```
Expand Down

0 comments on commit 1d8bd19

Please sign in to comment.