fix: make sdk release preparation deterministic

This commit is contained in:
illusia committed 2026-09-04 08:27:28 +08:00
1 parent b6367e2645
commit b298496911
5 files changed
+65 -5

No files matched your search

+8 -2
View File
@@ -34,7 +34,11 @@ jobs:
run: |
$ErrorActionPreference = "Stop"
$releaseVersion = $env:RELEASE_REF -replace '^v', ''
npm ci --no-audit --no-fund
npm ci --ignore-scripts --no-audit --no-fund
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
npm run prepare:sdk
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
npm rebuild @discordjs/opus --foreground-scripts --no-audit --no-fund
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
npm --prefix web ci --no-audit --no-fund
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
@@ -130,7 +134,9 @@ jobs:
run: |
set -euo pipefail
release_version="${RELEASE_REF#v}"
npm ci --no-audit --no-fund
npm ci --ignore-scripts --no-audit --no-fund
npm run prepare:sdk
npm rebuild @discordjs/opus --foreground-scripts --no-audit --no-fund
npm --prefix web ci --no-audit --no-fund
current_version="$(node -p "require('./package.json').version")"
if [ "$current_version" != "$release_version" ]; then
+3 -1
View File
@@ -22,7 +22,9 @@ jobs:
web/package-lock.json
- name: Install dependencies
run: |
npm ci --no-audit --no-fund
npm ci --ignore-scripts --no-audit --no-fund
npm run prepare:sdk
npm rebuild @discordjs/opus --foreground-scripts --no-audit --no-fund
npm --prefix web ci --no-audit --no-fund
- name: Test and build
run: |