Skip to content

Commit 6a3ed80

Browse files
committed
ci: only build when the right packagemanger is prenset
1 parent be5c3a1 commit 6a3ed80

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci-bun.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
main:
1515
runs-on: ubuntu-latest
16+
if: ${{hashFiles('**/bun.lockb')}}
1617
steps:
1718
- uses: actions/checkout@v4
1819
with:
@@ -35,4 +36,4 @@ jobs:
3536
with:
3637
name: playwright-report
3738
path: dist/.playwright/apps/
38-
retention-days: 30
39+
retention-days: 30

.github/workflows/ci-npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
main:
1515
runs-on: ubuntu-latest
16+
if: ${{ hashFiles('**/package-lock.json')}}
1617
steps:
1718
- uses: actions/checkout@v4
1819
with:
@@ -23,7 +24,7 @@ jobs:
2324
node-version: latest
2425

2526
- run: npm ci
26-
27+
2728
- uses: nrwl/nx-set-shas@v4
2829

2930
- name: Install Playwright Browsers
@@ -36,4 +37,4 @@ jobs:
3637
with:
3738
name: playwright-report
3839
path: dist/.playwright/apps/
39-
retention-days: 30
40+
retention-days: 30

0 commit comments

Comments
 (0)