mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
feat: ci設置
This commit is contained in:
parent
f8b15a1db9
commit
1e3cedba6f
1 changed files with 27 additions and 0 deletions
27
.github/workflows/main.yml
vendored
Normal file
27
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout master branch
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.13.0
|
||||
|
||||
- name: Cache npm directory
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: ${{ runner.os }}-npm-
|
||||
|
||||
- name: Install node modules
|
||||
run: npm ci
|
||||
|
||||
- name: Build ai
|
||||
run: npm run build
|
Loading…
Reference in a new issue