Skip to content

Commit 85bd37b

Browse files
committed
ci: hardening security and pnpm action version
1 parent 7d15fa9 commit 85bd37b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,28 @@
33

44
name: Node.js CI
55

6-
on: [push]
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
types: [opened, synchronize]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
716

817
jobs:
918
build:
1019
runs-on: ubuntu-latest
1120

1221
steps:
1322
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
14-
- uses: pnpm/action-setup@v2
23+
- uses: pnpm/action-setup@v4
1524
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
1625
with:
17-
node-version-file: ".node-version"
18-
cache: "pnpm"
26+
node-version-file: '.node-version'
27+
cache: 'pnpm'
1928
- run: pnpm i
2029
- run: pnpm run lint
2130
- run: pnpm run build

0 commit comments

Comments
 (0)