From 5817c964b4e9e273de14a8c683228c7f30aaafb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Mon, 6 Jan 2025 22:53:45 +0100 Subject: [PATCH] fix: Correct regex for version injection in package.json --- .github/workflows/insiders-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insiders-build.yaml b/.github/workflows/insiders-build.yaml index 69c7914..a3c6dd9 100644 --- a/.github/workflows/insiders-build.yaml +++ b/.github/workflows/insiders-build.yaml @@ -14,7 +14,7 @@ jobs: build: | # Inject git SHA into package.json $GIT_SHA = (git rev-parse --short HEAD) - (Get-Content package.json) -replace '"version": "(.*?)"', '"version": ('"version": "$1-' + $GIT_SHA + '"') | Set-Content package.json + (Get-Content package.json) -replace '"version": "(.*?)"', ('"version": "$1-' + $GIT_SHA + '"') | Set-Content package.json ./node_modules/.bin/esbuild src/ctrl-q.js --bundle --outfile=build.cjs --format=cjs --platform=node --target=node23 --inject:./src/lib/util/import-meta-url.js --define:import.meta.url=import_meta_url node --experimental-sea-config sea-config.json