[Feat] pack client on CI

pull/23/head
Mist 2024-02-24 19:29:40 +08:00
parent 3b8f8e49d0
commit ac7e7de7dd
No known key found for this signature in database
GPG Key ID: B6B08DB7604B8628
1 changed files with 29 additions and 0 deletions

29
.github/workflows/pack.yaml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Pack
on:
push:
branches:
- main
jobs:
pack:
runs-on: ubuntu-latest
steps:
- name: Setup nodejs
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install deps
working-directory: snap-client
run: npm i
- name: Build package
working-directory: snap-client
run: npm run build
- name: Move into public folder
run: cp -r snap-client/build snap-server/public