diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2506471..cbc3141 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,47 +10,23 @@ on: jobs: build: - - runs-on: ${{ matrix.os }} - - strategy: - matrix: - # TODO(68): Add `windows-latest` and support. - os: [ubuntu-latest] - node-version: [14.x, 16.x, 18.x] + runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - # Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux. - - name: Get Yarn cache directory - if: runner.os != 'Windows' - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Use Yarn cache - if: runner.os != 'Windows' - uses: actions/cache@v2 - id: yarn-cache + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - yarn-${{ runner.os }}-${{ matrix.node-version }}- - yarn-${{ runner.os }}- + node-version: 18 + cache: "yarn" - name: Use node_modules cache id: node-modules-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules - key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} + key: node-modules-${{ runner.os }}-${{ hashFiles('./yarn.lock') }} restore-keys: | - node-modules-${{ runner.os }}-${{ matrix.node-version }}- node-modules-${{ runner.os }}- - name: Project installation @@ -67,4 +43,4 @@ jobs: env: # Webpack fails due to crypto enforcements in Node 17+ # See, e.g., https://github.com/webpack/webpack/issues/14532 - NODE_OPTIONS: ${{ matrix.node-version == '18.x' && '--openssl-legacy-provider' || '' }} + NODE_OPTIONS: "--openssl-legacy-provider" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27e2461..191a863 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,8 @@ jobs: packages: write pull-requests: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 diff --git a/README.md b/README.md index 7c58da2..86d0a6f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,27 @@ -[![Webpack Stats Plugin — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/webpack-stats-plugin/master/webpack-stats-plugin-Hero.png)](https://formidable.com/open-source/) - -[![npm version][npm_img]][npm_site] -[![Actions Status][actions_img]][actions_site] -[![MIT license][lic_img]][lic_site] -[![Maintenance Status][maintenance_image]](#maintenance-status) + + Webpack Stats Plugin + + +
+
+ +

+ + weekly downloads + + + current version + + + build status + + + Maintenance Status + + + license + +

This plugin will ingest the webpack [stats](https://webpack.js.org/configuration/stats/#stats) object, process / transform the object and write out to a file for further consumption. @@ -199,12 +217,4 @@ In earlier webpack, the plugin uses the much later [`emit`](https://webpack.js.o ## Maintenance Status -**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome. - -[npm_img]: https://badge.fury.io/js/webpack-stats-plugin.svg -[npm_site]: http://badge.fury.io/js/webpack-stats-plugin -[actions_img]: https://github.com/FormidableLabs/webpack-stats-plugin/workflows/CI/badge.svg -[actions_site]: https://github.com/FormidableLabs/webpack-stats-plugin/actions -[lic_img]: https://img.shields.io/npm/l/webpack-stats-plugin.svg?color=brightgreen&style=flat -[lic_site]: https://github.com/FormidableLabs/webpack-stats-plugin/blob/main/LICENSE.txt -[maintenance_image]: https://img.shields.io/badge/maintenance-active-green.svg?color=brightgreen&style=flat +**Active:** NearForm is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.