@bymaksym/loadline 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,6 +142,24 @@ jobs:
|
|
|
142
142
|
- run: npx @bymaksym/loadline@1 dist/my-app --format summary --max-boot 350kB
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
+
Or the Action in this repository, which runs the same check and adds the full report to the job
|
|
146
|
+
summary. It runs the Loadline version it was released with, so pinning the Action pins the tool:
|
|
147
|
+
|
|
148
|
+
<!-- x-release-please-start-version -->
|
|
149
|
+
|
|
150
|
+
```yaml
|
|
151
|
+
- uses: actions/checkout@v7
|
|
152
|
+
- uses: actions/setup-node@v7
|
|
153
|
+
with: { node-version: 22 }
|
|
154
|
+
- run: npm ci && npm run build
|
|
155
|
+
- uses: bymaksym/LoadLine@v1.2.1
|
|
156
|
+
with:
|
|
157
|
+
path: dist/my-app
|
|
158
|
+
args: --max-boot 350kB # anything the command takes
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
<!-- x-release-please-end -->
|
|
162
|
+
|
|
145
163
|
**GitLab CI** — `.gitlab-ci.yml`:
|
|
146
164
|
|
|
147
165
|
```yaml
|