Skip to content

Commit 5a5c359

Browse files
authored
Add GitHub Actions workflow for build verification
1 parent 288fd75 commit 5a5c359

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/verify.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
pre_job:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
13+
steps:
14+
- id: skip_check
15+
uses: fkirc/skip-duplicate-actions@v5
16+
with:
17+
concurrent_skipping: 'same_content_newer'
18+
skip_after_successful_duplicate: 'true'
19+
20+
build:
21+
needs: pre_job
22+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout 🛎️
26+
uses: actions/checkout@v6
27+
28+
- uses: actions/setup-node@v6
29+
with:
30+
node-version: "lts/*"
31+
32+
- name: Install and Build 🔧
33+
run: |
34+
npm install
35+
npm run build

0 commit comments

Comments
 (0)