Skip to content

Bare specifier improve #790

Bare specifier improve

Bare specifier improve #790

# This is a GitHub workflow YAML file
# see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
# For every push on a pull request, it
# - creates or updates a comment about potential pr impact on several files size
# Read more in
# - https://github.com/jsenv/file-size-impact
#
# If you want to update this file it's recommended to use a YAML validator
# https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
# configured to validate with https://json.schemastore.org/github-workflow.json
name: file size impact
on: pull_request
jobs:
pr_impact:
strategy:
matrix:
os: [ubuntu-22.04]
node: [22.3.0]
runs-on: ${{ matrix.os }}
name: pr impact
steps:
- name: Setup git
uses: actions/checkout@v4
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install node modules
run: npm install
- name: Report file size impact
run: node ./.github/workflows/pr_impact_on_dist.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}