mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-03 16:34:19 +01:00
Add Github workflow for Turso serverless package
This commit is contained in:
40
.github/workflows/turso-serverless.yml
vendored
Normal file
40
.github/workflows/turso-serverless.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: turso-serverless
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'packages/turso-serverless/**'
|
||||
- '.github/workflows/turso-serverless.yml'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'packages/turso-serverless/**'
|
||||
- '.github/workflows/turso-serverless.yml'
|
||||
|
||||
env:
|
||||
working-directory: packages/turso-serverless
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
timeout-minutes: 20
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.working-directory }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: useblacksmith/setup-node@v5
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: ${{ env.working-directory }}/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
Reference in New Issue
Block a user