[Feat] pack client on CI

This commit is contained in:
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

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