added workflow files
All checks were successful
build-sveltekit / build (push) Successful in 38s

This commit is contained in:
Jonas_Jones 2025-08-01 17:20:16 +02:00
parent ce1ace9207
commit 46161c7a02
2 changed files with 44 additions and 1 deletions

View file

@ -1,5 +1,9 @@
name: build-sveltekit name: build-sveltekit
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:
jobs: jobs:
build: build:

39
.github/workflows/build-sveltekit.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: build-sveltekit
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Restore npm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Build SvelteKit app
run: npm run build
- name: Save npm cache
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}