forked from mirror/codesnap.nvim
[Feat] pack client on CI
parent
3b8f8e49d0
commit
ac7e7de7dd
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue