Skip to content

Commit 15b982c

Browse files
committed
ci: try to fix build
1 parent 6f7ecba commit 15b982c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/part-build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,15 @@ jobs:
241241
cat $filePath
242242
243243
cd ./content/*.Web
244-
npm i file://$(Get-ChildItem -Path "${{ github.workspace }}/artifacts/coalesce-vue/*.tgz").FullName --save --force
245-
npm i file://$(Get-ChildItem -Path "${{ github.workspace }}/artifacts/coalesce-vue-vuetify3/*.tgz").FullName --save --force
244+
245+
# Update package.json to use the newly built packages
246+
$coalescevuePath = "file:$((Get-ChildItem -Path '${{ github.workspace }}/artifacts/coalesce-vue/*.tgz').FullName)"
247+
$coalescevuetifyPath = "file:$((Get-ChildItem -Path '${{ github.workspace }}/artifacts/coalesce-vue-vuetify3/*.tgz').FullName)"
248+
249+
$packageJson = Get-Content package.json | ConvertFrom-Json
250+
$packageJson.dependencies.'coalesce-vue' = $coalescevuePath
251+
$packageJson.dependencies.'coalesce-vue-vuetify3' = $coalescevuetifyPath
252+
$packageJson | ConvertTo-Json -Depth 10 | Set-Content package.json
246253
247254
cat package.json
248255

0 commit comments

Comments
 (0)