Skip to content

Commit 0cdc340

Browse files
committed
chore: update CI workflow configuration
- Added `workflow_dispatch` trigger for manual workflow runs. - Changed `pull_request` configuration to specify event types instead of branches. - Updated the `install` step to use `--frozen-lockfile` for consistent dependency installation.
1 parent e6e82c4 commit 0cdc340

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
78
pull_request:
8-
branches:
9-
- main
9+
types:
10+
- opened
11+
- synchronize
1012

1113
jobs:
1214
build:
1315
runs-on: ubuntu-latest
1416
steps:
1517
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18+
with:
19+
persist-credentials: false
1620

1721
- name: setup pnpm
1822
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
@@ -23,8 +27,8 @@ jobs:
2327
node-version: lts/*
2428
cache: pnpm
2529

26-
- name: install dependencies
27-
run: pnpm install
30+
- name: install
31+
run: pnpm install --frozen-lockfile
2832

2933
- name: build
3034
run: pnpm build

0 commit comments

Comments
 (0)