-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.19 KB
/
Copy pathrelease.yml
File metadata and controls
38 lines (31 loc) · 1.19 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
name: Release
# Tag-driven only — see docs/DEPLOYING.md "Releasing". Never hand-upload
# installers; pushing a v* tag is the one and only path to a GitHub Release.
on:
push:
tags:
- 'v*'
permissions:
contents: write # electron-builder needs this to create the release + upload assets
jobs:
release:
# Pinned, not windows-latest: that alias moved to a VS2026 (18.x) image
# and node-gyp doesn't recognize that version yet ("Could not find any
# Visual Studio installation" rebuilding node-pty — nodejs/node-gyp#3282).
# windows-2022 keeps the VS2022 toolchain node-gyp actually understands.
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# node-gyp's bundled gyp still imports distutils, which Python 3.12+
# dropped from the standard library — pin 3.11 so rebuilding node-pty
# doesn't die with "ModuleNotFoundError: No module named 'distutils'".
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: npm ci
- run: npm run release:publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}