From 898dd11cc3c64fd1c7d3064fd27647dc2c8b2186 Mon Sep 17 00:00:00 2001 From: Taco de Wolff Date: Tue, 21 May 2024 15:56:53 -0400 Subject: [PATCH] Fix NodeJS workflow --- bindings/js/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/js/Makefile b/bindings/js/Makefile index 7b4d93cd7d..9e05ae602c 100644 --- a/bindings/js/Makefile +++ b/bindings/js/Makefile @@ -1,7 +1,6 @@ SHELL=/usr/bin/env bash HASH=`git log -1 --format="%H"` VERSION=`git describe --tags --abbrev=0 | cut -b 2-` -NODE_VERSION=`node -e 'console.log(require("./package.json").version);'` # needed explicitly for Windows export CGO_ENABLED=1 @@ -18,7 +17,8 @@ all: build compile: go mod init github.com/tdewolff/minify/bindings/js go mod tidy - go get github.com/tdewolff/minify/v2@${NODE_VERSION} + NODE_VERSION=`node -e 'console.log(require("./package.json").version);'` + go get github.com/tdewolff/minify/v2@v${NODE_VERSION} go build -buildmode=c-archive -o minify.a minify.go build: