mirror of
https://github.com/picocss/pico.git
synced 2025-04-21 17:16:14 -04:00
chore: Add GitHub Actions build workflow
This commit is contained in:
parent
319e48ba91
commit
75cc8c60ba
1 changed files with 30 additions and 0 deletions
30
.github/workflows/build.yml
vendored
Normal file
30
.github/workflows/build.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue