Skip to content

Commit 179ed9f

Browse files
committed
fix: add setup-safe-chain input to Node.js setup action and update publish workflow
1 parent 5703ea1 commit 179ed9f

File tree

2 files changed

+5
-43
lines changed

2 files changed

+5
-43
lines changed

.github/actions/setup-node/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ inputs:
99
description: "Whether to install dependencies"
1010
required: false
1111
default: "true"
12+
setup-safe-chain:
13+
description: "Whether to setup AikidoSec/safe-chain"
14+
required: false
15+
default: "true"
1216

1317
runs:
1418
using: "composite"

.github/workflows/publish.yml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: Setup Node.js
7878
uses: ./.github/actions/setup-node
7979
with:
80-
install-deps: false
80+
setup-safe-chain: false
8181

8282
- name: Setup Rust
8383
uses: ./.github/actions/setup-rust
@@ -96,9 +96,6 @@ jobs:
9696
- name: Setup Azure Code Signing
9797
run: cargo install trusted-signing-cli
9898

99-
- name: install frontend dependencies
100-
run: npm ci # change this to npm, pnpm or bun depending on which one you use.
101-
10299
# Generate THIRD_PARTY_LICENSES file
103100
# Generate here to include in Tauri build bundle
104101
- name: Install cargo-license
@@ -107,45 +104,6 @@ jobs:
107104
- name: Generate THIRD_PARTY_NOTICES
108105
run: node --experimental-strip-types .github/scripts/generate-licenses.ts tmp
109106

110-
- name: Cache WiX Toolset (wix314)
111-
if: ${{ matrix.platform == 'windows-latest' }}
112-
uses: actions/cache@v5
113-
with:
114-
path: ~\AppData\Local\tauri\WixTools314
115-
key: wix314-${{ runner.os }}-wix3141rtm-v1
116-
117-
- name: Preload WiX Toolset (wix314)
118-
if: ${{ matrix.platform == 'windows-latest' }}
119-
shell: pwsh
120-
run: |
121-
$ErrorActionPreference = "Stop"
122-
123-
$dest = Join-Path $env:LOCALAPPDATA "tauri\WixTools314"
124-
if (Test-Path $dest) {
125-
Write-Host "WiX already cached: $dest"
126-
exit 0
127-
}
128-
129-
New-Item -ItemType Directory -Force -Path $dest | Out-Null
130-
131-
$url = "https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip"
132-
$zip = Join-Path $env:TEMP "wix314-binaries.zip"
133-
134-
# curl.exe の方が retry が強い
135-
for ($i = 1; $i -le 5; $i++) {
136-
try {
137-
Write-Host "Downloading WiX ($i/5): $url"
138-
& curl.exe -fL --retry 5 --retry-delay 2 --retry-all-errors -o $zip $url
139-
break
140-
} catch {
141-
if ($i -eq 5) { throw }
142-
Start-Sleep -Seconds (3 * $i)
143-
}
144-
}
145-
146-
Expand-Archive -Force $zip $dest
147-
Write-Host "Extracted WiX to: $dest"
148-
149107
- uses: tauri-apps/tauri-action@19b93bb55601e3e373a93cfb6eb4242e45f5af20 # v0.6.0
150108
env:
151109
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)