diff --git a/.github/workflows/scripts/arweave-deploy.js b/.github/workflows/scripts/arweave-deploy.js index 5c3bd435..fd8900bb 100644 --- a/.github/workflows/scripts/arweave-deploy.js +++ b/.github/workflows/scripts/arweave-deploy.js @@ -12,7 +12,8 @@ const { Readable } = require("stream"); async function main() { const mime = (await import("mime")).default; - const jwk = process.env.DEPLOY_KEY; + + const jwk = JSON.parse(process.env.DEPLOY_KEY); if (!jwk) { throw new Error( "The Arweave wallet key (DEPLOY_KEY) is missing or not accessible. Please ensure it is set as an environment variable." diff --git a/.github/workflows/scripts/package-lock.json b/.github/workflows/scripts/package-lock.json index 309688e2..24c5d5de 100644 --- a/.github/workflows/scripts/package-lock.json +++ b/.github/workflows/scripts/package-lock.json @@ -37,6 +37,20 @@ "node": ">=18" } }, + "node_modules/@ar.io/sdk/node_modules/arweave": { + "version": "1.14.4", + "resolved": "https://registry.npmjs.org/arweave/-/arweave-1.14.4.tgz", + "integrity": "sha512-tmqU9fug8XAmFETYwgUhLaD3WKav5DaM4p1vgJpEj/Px2ORPPMikwnSySlFymmL2qgRh2ZBcZsg11+RXPPGLsA==", + "dependencies": { + "arconnect": "^0.4.2", + "asn1.js": "^5.4.1", + "base64-js": "^1.5.1", + "bignumber.js": "^9.0.2" + }, + "engines": { + "node": ">=16.15.0" + } + }, "node_modules/@ardrive/turbo-sdk": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/@ardrive/turbo-sdk/-/turbo-sdk-1.9.0.tgz", @@ -1057,9 +1071,9 @@ } }, "node_modules/arweave": { - "version": "1.14.4", - "resolved": "https://registry.npmjs.org/arweave/-/arweave-1.14.4.tgz", - "integrity": "sha512-tmqU9fug8XAmFETYwgUhLaD3WKav5DaM4p1vgJpEj/Px2ORPPMikwnSySlFymmL2qgRh2ZBcZsg11+RXPPGLsA==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/arweave/-/arweave-1.15.1.tgz", + "integrity": "sha512-rT7FOwqdudd5npqp4xOYdDT2035LtpcqePjwirh4wjRiEtVsz1FZkRiM2Yj+fOAwYzOm/hNG0GDOipDSaiEGGQ==", "dependencies": { "arconnect": "^0.4.2", "asn1.js": "^5.4.1", @@ -1067,7 +1081,7 @@ "bignumber.js": "^9.0.2" }, "engines": { - "node": ">=16.15.0" + "node": ">=18" } }, "node_modules/arweave-stream-tx": {