Skip to content

Commit

Permalink
Update readme. Simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelloz committed Mar 27, 2024
1 parent 68624f1 commit 077962d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,23 @@ 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
needs: build
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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 077962d

Please sign in to comment.