Skip to content

Commit

Permalink
Fix NodeJS workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed May 21, 2024
1 parent 4f3e89c commit 898dd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/js/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 898dd11

Please sign in to comment.