mirror of
https://github.com/JonasunderscoreJones/BingoGenerator.git
synced 2025-10-22 16:39:19 +02:00
This commit is contained in:
parent
ce1ace9207
commit
46161c7a02
2 changed files with 44 additions and 1 deletions
|
@ -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
39
.github/workflows/build-sveltekit.yml
vendored
Normal 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') }}
|
Loading…
Add table
Add a link
Reference in a new issue