diff --git a/.gitignore b/.gitignore index ca3db289d..66851dd10 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ node_modules .cache .output dist +dist-node-memory +dist-node-docker .DS_Store tests/e2e/src/support/extension tests/e2e/reports diff --git a/.releaserc b/.releaserc index df24608ae..ed8abf11f 100644 --- a/.releaserc +++ b/.releaserc @@ -26,8 +26,8 @@ [ "@semantic-release/exec", { - "prepareCmd": "VITE_VERSION=${nextRelease.version} npm run generate", - "publishCmd": "zip -r dist.zip dist", + "prepareCmd": "VITE_VERSION=${nextRelease.version} sh scripts/create-release-assets.sh", + "publishCmd": "zip -r dist.zip dist && zip -r dist-node-memory.zip dist-node-memory && zip -r dist-node-docker.zip dist-node-docker", "successCmd": "echo '::set-output name=releaseVersion::${nextRelease.version}'" } ], @@ -38,6 +38,14 @@ { "path": "dist.zip", "label": "Dist package" + }, + { + "path": "dist-node-memory.zip", + "label": "In-memory node dist package" + }, + { + "path": "dist-node-docker.zip", + "label": "Dockerized node dist package" } ] } diff --git a/package-lock.json b/package-lock.json index e61ef44ca..a19c89b1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,6 @@ "@web3modal/html": "^2.6.2", "cheerio": "^1.0.0-rc.12", "crypto-js": "^4.1.1", - "date-fns": "^2.29.3", "dotenv": "^16.0.3", "ethers": "^5.7.2", "focus-trap": "^7.2.0", diff --git a/scripts/create-release-assets.sh b/scripts/create-release-assets.sh new file mode 100644 index 000000000..8d1619275 --- /dev/null +++ b/scripts/create-release-assets.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Ensure the script stops if any command fails +set -e + +# Run the first npm command and move folder +npm run generate:node:memory +mv .output/public ./dist-node-memory + +# Run the second npm command and move folder +npm run generate:node:docker +mv .output/public ./dist-node-docker + +# Run the final npm command +npm run generate