Skip to content

Commit 5f0eb21

Browse files
committed
Add lint gate to release workflow and bump version to 1.0.3
1 parent 1fb8cdb commit 5f0eb21

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,51 @@ on:
66
- 'v*'
77

88
jobs:
9+
lint:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install system dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: lts/*
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: latest
28+
29+
- name: Install Rust stable
30+
uses: dtolnay/rust-toolchain@stable
31+
with:
32+
components: clippy
33+
34+
- name: Rust cache
35+
uses: swatinem/rust-cache@v2
36+
with:
37+
workspaces: './src-tauri -> target'
38+
39+
- name: Install frontend dependencies
40+
run: pnpm install
41+
42+
- name: ESLint
43+
run: pnpm lint
44+
45+
- name: Prettier
46+
run: pnpm format --check
47+
48+
- name: Clippy
49+
working-directory: src-tauri
50+
run: cargo clippy -- -D warnings
51+
952
release:
53+
needs: lint
1054
permissions:
1155
contents: write
1256
strategy:
@@ -64,7 +108,7 @@ jobs:
64108
tagName: ${{ github.ref_name }}
65109
releaseName: 'Sprout ${{ github.ref_name }}'
66110
releaseBody: 'See the assets to download and install Sprout.'
67-
releaseDraft: true
111+
releaseDraft: false
68112
prerelease: false
69113
releaseAssetNamePattern: 'Sprout-[platform]-[arch].[ext]'
70114
args: ${{ matrix.args }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sprout",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"type": "module",
55
"description": "Sprout - Server management panel for Pumpkin",
66
"scripts": {

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sprout"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
edition = "2021"
55

66
[build-dependencies]

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Sprout",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"identifier": "dev.pumpkin.panel",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

0 commit comments

Comments
 (0)