From b53075c503a4974f266bf2b30728cdb79b118fc7 Mon Sep 17 00:00:00 2001 From: Art Rosnovsky Date: Thu, 23 Nov 2023 13:46:23 -0800 Subject: [PATCH] chore: update Action, add Makefile --- .github/workflows/action.yml | 7 ++++--- Makefile | 8 +++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index dabd8ec..46f5283 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -25,6 +25,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: "npm" - - run: npm ci - - run: npm run build --if-present - - run: npm test + - run: npm install pnpm --location=global + - run: pnpm i --frozen-lockfile + - run: pnpm run build --if-present + - run: pnpm test diff --git a/Makefile b/Makefile index c1390b9..7fe309f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ -commit: +.PHONY: help commit +.DEFAULT_GOAL := help + +help: ## Show this help. + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +commit: ## Stage all files and commit with `commitizen` git add . pnpm commit