Skip to content

Commit

Permalink
build: Update Git SHA injection in package.json for Insider builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mountaindude committed Jan 6, 2025
1 parent e9f7e51 commit 83b9bc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/insiders-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
build: |
# Inject git SHA into package.json
$GIT_SHA = (git rev-parse --short HEAD)
(Get-Content package.json) -replace '"version": "(.*?)"', '"version": "`$1-$GIT_SHA"' | Set-Content package.json
Write-Host "GIT_SHA: $GIT_SHA"
(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 83b9bc8

Please sign in to comment.