Skip to content

Commit

Permalink
Merge pull request #614 from mountaindude/599
Browse files Browse the repository at this point in the history
fix: Correct regex for version injection in package.json
  • Loading branch information
mountaindude authored Jan 6, 2025
2 parents 08f53c4 + 5817c96 commit 5bd6d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/insiders-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bd6d38

Please sign in to comment.