Skip to content

Commit d3d8ccd

Browse files
committed
chore: Add GitHub Actions build workflow
1 parent 319e48b commit d3d8ccd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: 20
13+
cache: yarn
14+
- run: yarn install --frozen-lockfile
15+
- run: yarn build
16+
- uses: tj-actions/verify-changed-files@v16
17+
id: changed-files
18+
with:
19+
fail-if-changed: true
20+
- name: List changed files
21+
if: always()
22+
env:
23+
FILES_CHANGED: |-
24+
${{ steps.changed-files.outputs.changed_files }}
25+
run: |
26+
echo "Files changed:"
27+
for file in ${FILES_CHANGED}
28+
do
29+
echo "${file}"
30+
done

0 commit comments

Comments
 (0)