Skip to content

Commit

Permalink
Check bundle sizes on Node.js 18 only
Browse files Browse the repository at this point in the history
The bundles should be identical between Node.js versions, so check with
one version only.
  • Loading branch information
victorlin committed Mar 14, 2023
1 parent 7ae198c commit 5cbd126
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,12 @@ jobs:
- run: npm run lint
bundlesize:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: 18
- run: npm ci
# Node.js 14 comes with NPM 6 which auto-installs packages by default.
- if: ${{ matrix.node == 14 }}
run: npx bundlesize
- if: ${{ matrix.node != 14 }}
run: npx --yes bundlesize
publish:
if: ${{ github.ref == 'refs/heads/release' }}
Expand Down

0 comments on commit 5cbd126

Please sign in to comment.