-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (58 loc) · 1.6 KB
/
nodejs.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Node CI
on:
pull_request:
branches:
- main
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [ '22' ]
steps:
- name: Install NSIS
run: |
Invoke-Expression "& { $(Invoke-RestMethod https://get.scoop.sh) } -RunAsAdmin"
scoop bucket add extras
scoop install nsis
- name: Print NSIS version
run: makensis -VERSION
- name: Checkout
uses: actions/[email protected]
- name: Setup Windows SDK
uses: GuillaumeFalourd/[email protected]
- name: Add signtool.exe path to PATH environment variable
uses: myci-actions/export-env-var-powershell@1
with:
name: PATH
value: $env:PATH;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\
- name: Setup NodeJS
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Dependencies Install
run: npm ci
env:
CI: true
- name: Build and Test
run: npm run build
env:
CI: true
KTUVIT_EMAIL: ${{ secrets.KTUVIT_EMAIL }}
KTUVIT_PASSWORD: ${{ secrets.KTUVIT_PASSWORD }}
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: installer/Ktuvit-Downloader_*_Setup.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}