Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.calc.outputs.version }}
tag: ${{ steps.calc.outputs.tag }}
tag: ${{ steps.calc.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -93,8 +93,8 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
node-version: "20"
cache: "npm"

- name: Sync version from computed tag
run: node scripts/sync-version.js
Expand All @@ -103,6 +103,16 @@ jobs:

- run: npm install --no-fund --no-audit

# Кэш бинарников electron-builder (winCodeSign, nsis, winCodeSign и пр.).
# Защита от 503 при скачивании вспомогательных тулов с GitHub Releases.
- name: Cache electron-builder binaries
uses: actions/cache@v4
with:
path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\AppData\\Local\\electron-builder\\Cache' || '~/.cache/electron-builder' }}
key: electron-builder-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
electron-builder-${{ runner.os }}-

- name: Build
run: npm run ${{ matrix.command }}

Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Release: Build & Publish"
on:
push:
tags:
- 'v*'
- "v*"

permissions:
contents: write
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
node-version: "20"
cache: "npm"

- name: Sync version from tag
run: node scripts/sync-version.js
Expand All @@ -37,6 +37,16 @@ jobs:
- name: Install dependencies
run: npm ci

# Кэш бинарников electron-builder (winCodeSign, nsis и пр.).
# Защита от 503 при скачивании вспомогательных тулов с GitHub Releases.
- name: Cache electron-builder binaries
uses: actions/cache@v4
with:
path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\AppData\\Local\\electron-builder\\Cache' || '~/Library/Caches/electron-builder' }}
key: electron-builder-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
electron-builder-${{ runner.os }}-

- name: Build and Publish (stable)
if: ${{ !contains(github.ref_name, '-beta') }}
run: npm run ${{ matrix.command }}
Expand Down
Loading