mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-27 14:02:14 +00:00
Merge pull request #81 from EETagent/sveltekit_devops
(frontend) (devops) Add CI for frontend
This commit is contained in:
commit
bf3d6d4378
2 changed files with 39 additions and 1 deletions
39
.github/workflows/sveltekit.yml
vendored
Normal file
39
.github/workflows/sveltekit.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
name: SvelteKit
|
||||||
|
|
||||||
|
on:
|
||||||
|
push: { branches: [master] }
|
||||||
|
pull_request:
|
||||||
|
branches: [ "*" ]
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out 🚚
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Extract frontend 🚜
|
||||||
|
run: |
|
||||||
|
shopt -s extglob
|
||||||
|
rm -r !(frontend)/
|
||||||
|
mv frontend/* ./
|
||||||
|
|
||||||
|
- name: Install pnpm 📦
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
|
|
||||||
|
- name: Setup NodeJS ⚒️
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 19
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- name: Install dependencies 🚀
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Build 🔨
|
||||||
|
run: pnpm run build
|
||||||
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiGetCandidatePortfolio, apiResetCandidatePassword } from '$lib/@api/admin';
|
import { apiGetCandidatePortfolio, apiResetCandidatePassword } from '$lib/@api/admin';
|
||||||
import type { CandidateData } from '$lib/stores/candidate';
|
import type { CandidateData } from '$lib/stores/candidate';
|
||||||
import ListElement from './ListElement.svelte';
|
|
||||||
|
|
||||||
export let id: number;
|
export let id: number;
|
||||||
export let candidate: CandidateData;
|
export let candidate: CandidateData;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue