Skip to content

Commit

Permalink
Fix dashboard prod deploy (#6787)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellebrier authored Nov 27, 2023
1 parent 2fefdad commit 1124ae5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions protocol-dashboard/scripts/updateBuild.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const pinFromFs = async (cid) => {
try {
const result = await pinata.pinFromFS(sourcePath, options)
console.log(result)
return result
} catch (e) {
console.log(e)
}
Expand All @@ -74,8 +75,8 @@ const run = async () => {
try {
await updateGABuild()
const cid = await pinGABuild()
await pinFromFs(cid)
fs.writeFileSync(`./build_cid.txt`, cid.IpfsHash)
const { IpfsHash } = await pinFromFs(cid)
fs.writeFileSync(`./build_cid.txt`, IpfsHash)
process.exit()
} catch (err) {
console.log(err)
Expand Down

0 comments on commit 1124ae5

Please sign in to comment.