diff --git a/.github/workflows/test.js.yml b/.github/workflows/test.js.yml index 28c015c..f99a8c1 100644 --- a/.github/workflows/test.js.yml +++ b/.github/workflows/test.js.yml @@ -2,6 +2,7 @@ name: Test env: FORCE_COLOR: "1" + USE_DOCKER: "0" on: push: diff --git a/Makefile b/Makefile index 1e3f5c0..2a4443e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,13 @@ BUILD_DIR = ./build NODE_IMAGE = node:22 -DOCKER = docker run --rm -v "$(CURDIR)":/app -w /app $(NODE_IMAGE) +USE_DOCKER ?= 1 + +ifeq ($(USE_DOCKER),1) +DOCKER = docker run --rm -t -e FORCE_COLOR=1 -v "$(CURDIR)":/app -w /app $(NODE_IMAGE) +else +DOCKER = +endif + EXEC = $(DOCKER) npm exec -- .PHONY: clean lint compile test build publish pack release-patch release-minor release-major