BingoGenerator/.forgejo/workflows/build-sveltekit.yml
Jonas_Jones e3c6e146ac
Some checks failed
build-sveltekit / build (push) Failing after 50s
added forgejo build script
2025-06-10 19:25:14 +02:00

46 lines
1.2 KiB
YAML

name: build-sveltekit
on: [push, pull_request]
jobs:
build:
runs-on: docker
steps:
- name: checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: setup node
uses: https://github.com/actions/setup-node@v4
with:
node-version: 20
- name: restore cached dependencies
uses: https://code.forgejo.org/actions/cache/restore@v4
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-SvelteKit
- name: install dependencies
run: npm install --frozen-lockfile
- name: build project
run: npm run build
- name: capture build artifacts
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: sveltekit-artifacts.zip
path: |
build/
.svelte-kit/
if-no-files-found: error
- name: cache downloaded dependencies
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: https://code.forgejo.org/actions/cache/save@v4
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-SvelteKit