mirror of
https://github.com/JonasunderscoreJones/codes.jonasjones.dev.git
synced 2025-10-22 16:39:20 +02:00
Compare commits
2 commits
abc812fed4
...
2455c5c5af
Author | SHA1 | Date | |
---|---|---|---|
2455c5c5af | |||
e89f0fb377 |
3 changed files with 1396 additions and 1417 deletions
44
.forgejo/workflows/build-sveltekit.yml
Normal file
44
.forgejo/workflows/build-sveltekit.yml
Normal file
|
@ -0,0 +1,44 @@
|
|||
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-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- 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
|
||||
path: .svelte-kit/output/
|
||||
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-${{ hashFiles('package-lock.json') }}
|
2757
package-lock.json
generated
2757
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
@ -10,14 +10,14 @@
|
|||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^3.0.0",
|
||||
"@sveltejs/adapter-cloudflare": "^4.7.2",
|
||||
"@sveltejs/adapter-auto": "^6.0.1",
|
||||
"@sveltejs/adapter-cloudflare": "^7.0.4",
|
||||
"@sveltejs/kit": "^2.0.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
||||
"svelte": "^4.2.7",
|
||||
"svelte-check": "^3.6.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.1.0",
|
||||
"svelte": "^5.33.19",
|
||||
"svelte-check": "^4.2.1",
|
||||
"typescript": "^5.0.0",
|
||||
"vite": "^5.0.3"
|
||||
"vite": "^6.3.5"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue