From 231500b9b82282151065b459efbb596ad08bb404 Mon Sep 17 00:00:00 2001 From: Damien Butt <22627489+damienbutt@users.noreply.github.com> Date: Wed, 21 Feb 2024 03:54:32 +0000 Subject: [PATCH] feat(html): add better ci workflow --- templates/html/github/workflows/main.yml | 27 ++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/templates/html/github/workflows/main.yml b/templates/html/github/workflows/main.yml index d0e2387..10cb528 100644 --- a/templates/html/github/workflows/main.yml +++ b/templates/html/github/workflows/main.yml @@ -1,6 +1,13 @@ name: CI -on: [push] +on: + push: + branches: [master] + + pull_request: + branches: [master] + + workflow_dispatch: jobs: build: @@ -14,4 +21,20 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - uses: pnpm/action-setup@v3 + with: + version: 8 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: pnpm + + - name: Install + run: pnpm install