From 077962d4a8ed1c54805ff1e5b3f7a5e1e5de86c4 Mon Sep 17 00:00:00 2001 From: Pawel Kowalski Date: Wed, 27 Mar 2024 22:02:33 +0100 Subject: [PATCH] Update readme. Simplify workflow --- .github/workflows/build.yml | 28 +++++++--------------------- README.md | 2 +- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5999cac..08a6b91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,20 +18,8 @@ jobs: node-version: ${{ matrix.node }} pnpm-version: 8.15.4 - # - uses: pnpm/action-setup@v3 - # with: - # version: 8 - # - name: Use Node.js ${{ matrix.node }} @ ${{ matrix.os }} - # uses: actions/setup-node@v4 - # with: - # node-version: ${{ matrix.node }} - # cache: pnpm - - - name: Install dependencies - run: pnpm i - - - name: Build production assets - run: pnpm build + - run: pnpm i + - run: pnpm build publish: runs-on: ubuntu-latest @@ -39,16 +27,14 @@ jobs: if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v3 - with: - version: 8 - - name: Use Node.js - uses: actions/setup-node@v4 + - uses: wyvox/action-setup-pnpm@v3 with: - node-version: 21 - cache: pnpm + node-version: ${{ matrix.node }} + pnpm-version: 8.15.4 + - run: pnpm i - run: pnpm build + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: diff --git a/README.md b/README.md index ac406ca..8ac0747 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Having this boilerplate ready to run on your machine is as easy as typing: - JS and CSS transpilation and minification done by ESBuild (FAST) - CSS extraction using `mini-css-extract-plugin` -- HTML generation using `html-webpack-plugin` +- HTML generation using `html-bundler-webpack-plugin` - Examples: - Prefetched chunk, if you want to load faster critical parts of your build - Asynchronously loaded chunks, to block page rendering when loading/parsing/executing