-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.11 KB
/
CreateRelease.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
name: Build and Release Party Pooper
on:
push:
paths:
- package.json
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install jq
run: sudo apt-get install -y jq
- name: Get version from package.json
id: version-check
run: |
NEW_VERSION=$(jq -r '.version' package.json)
echo "New version detected: $NEW_VERSION"
echo "VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/PartyPooper-linux-x64
dist/PartyPooper-win-x64.exe
tag_name: v${{ steps.version-check.outputs.VERSION }}
body: ${{ github.event.head_commit.message }}
name: Party Pooper v${{ steps.version-check.outputs.VERSION }}