Include npm install in build
This commit is contained in:
parent
dd5371a2e3
commit
f035f014ed
@ -6,6 +6,7 @@ set -Eeuo pipefail
|
||||
export HOME=$(pwd)
|
||||
export CARGO_HOME=$(pwd)/.cargo
|
||||
cd wwp-repo
|
||||
ln -s ../node_modules ./node_modules
|
||||
ln -s ../target ./target
|
||||
ln -s ../wwpapp ./dist
|
||||
|
||||
@ -13,4 +14,5 @@ echo Running tests
|
||||
cargo test --target-dir ../target --profile release
|
||||
|
||||
echo Building assets
|
||||
npm install
|
||||
trunk build --locked --release
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM rust
|
||||
RUN apt-get -y update && \
|
||||
apt-get -y install \
|
||||
npm \
|
||||
binaryen \
|
||||
build-essential \
|
||||
git \
|
||||
|
@ -19,6 +19,7 @@ jobs:
|
||||
caches:
|
||||
- path: target
|
||||
- path: .cargo
|
||||
- path: node_modules
|
||||
outputs:
|
||||
- name: wwpapp
|
||||
run:
|
||||
|
Loading…
Reference in New Issue
Block a user