Skip to content

Commit

Permalink
chore: Add GitHub Actions build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjornu committed Dec 28, 2023
1 parent 319e48b commit 75cc8c6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: tj-actions/verify-changed-files@v16
id: changed-files
with:
fail-if-changed: true
- name: List changed files
if: always()
env:
FILES_CHANGED: |-
${{ steps.changed-files.outputs.changed_files }}
run: |
echo "Files changed:"
for file in ${FILES_CHANGED}
do
echo "- ${file}"
done

0 comments on commit 75cc8c6

Please sign in to comment.