mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-27 11:56:30 +00:00
[Update] redesign jobs dependencies graph (#33)
This commit is contained in:
parent
bf50e50801
commit
25c51f9569
2 changed files with 30 additions and 36 deletions
36
.github/workflows/pack.yaml
vendored
36
.github/workflows/pack.yaml
vendored
|
@ -1,36 +0,0 @@
|
||||||
name: Pack
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
pack:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup nodejs
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
cache: npm
|
|
||||||
cache-dependency-path: ./snap-client/package-lock.json
|
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: EndBug/add-and-commit@v9
|
|
||||||
with:
|
|
||||||
message: "[Update] build newest client package"
|
|
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
|
@ -8,7 +8,37 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pack:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup nodejs
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: npm
|
||||||
|
cache-dependency-path: ./snap-client/package-lock.json
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
message: "[Update] build newest client package"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
needs: pack
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
Loading…
Reference in a new issue