-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 1.05 KB
/
release.yaml
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
name: Release
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install dependencies
run: npm ci
- name: Get release version
id: get_version
uses: maltoze/get-version-action@v1
- name: Update package version
uses: restackio/[email protected]
with:
file: com.neil-enns.trackaudio.sdPlugin/manifest.json
fields: '{"Version": "${{ steps.get_version.outputs.version-without-v }}.0"}'
- name: Build
run: npm run build
- name: Pack
run: npm run pack
- name: Upload plugin
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
*.streamDeckPlugin