-
-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (40 loc) · 1.07 KB
/
Copy pathrelease.yml
File metadata and controls
50 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Automated Release Build
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: Build and Publish App Binaries
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Remove local .npmrc to prevent mirror overrides in CI
shell: bash
run: |
rm -f .npmrc
- name: Install Linux Build Dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y rpm libarchive-tools
sudo snap install snapcraft --classic
- name: Initialize Node.js Environment
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'npm'
- name: Install Dependencies
run: |
npm ci
- name: Compile and Release Distribution Packages
run: |
npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}