ci: only run when needed
This commit is contained in:
1 parent
d072f7d712
commit
f1920b5235
1 file changed
+7
-4
@@ -6,6 +6,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_web:
|
build_web:
|
||||||
@@ -50,6 +51,8 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
needs: build_web
|
needs: build_web
|
||||||
|
# Prevent forked PRs from running the build job which is expensive
|
||||||
|
if: github.repository == 'prayag17/JellyPlayer'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -99,8 +102,8 @@ jobs:
|
|||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install app dependencies and build web
|
- name: Install dependencies
|
||||||
run: pnpm install --no-frozen-lockfile && pnpm run build
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
- name: Build the app
|
- name: Build app
|
||||||
uses: tauri-apps/tauri-action@dev
|
run: pnpm run tauri build
|
||||||
Reference in new issue
Block a user