mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 22:11:14 +00:00
devops: add CI for frontend
This commit is contained in:
parent
0b36b96802
commit
0a2960d031
1 changed files with 35 additions and 0 deletions
35
.github/workflows/sveltekit.yml
vendored
Normal file
35
.github/workflows/sveltekit.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: SvelteKit
|
||||
|
||||
on:
|
||||
push: { branches: [master] }
|
||||
pull_request:
|
||||
branches: [ "*" ]
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out 🚚
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- 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
|
||||
working-directory: frontend
|
||||
|
||||
- name: Build 🔨
|
||||
run: pnpm run build
|
||||
working-directory: frontend
|
||||
|
||||
Loading…
Reference in a new issue