You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
RelativeCI agent upload artifact
v1.0.3
GitHub action that uploads bundle stats as an artifact to share with RelativeCI agent action when running during workflow_run
.
The artifact will be available on the workflow page (see: actions/upload-artifact "Where does the upload go?") and will count toward your GitHub storage usage.
To get started, follow RelativeCI Setup guide.
# .github/workflow/node.js.yml
name: Node.js CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
# Install dependencies
- run: npm ci
# Build bundle and output webpack stats
- run: npm run build -- --json > webpack-stats.json
# Upload relative-ci-artifact/webpack-stats.json to share with relative-ci/agent-action
- name: Upload webpack stats artifact
uses: relative-ci/agent-upload-artifact-action@v1
with:
webpackStatsFile: './webpack-stats.json
(default: ./webpack-stats.json
) Relative path to the generated bundle stats file
(default: relative-ci-artifacts
) The artifact name
(default: webpack-stats.json
) The artifact bundle stats file name
(default: 90
) actions/upload-artifact retention-days
input