forked from zth/rescript-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-ci.sh
executable file
·40 lines (31 loc) · 1 KB
/
build-ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
set -e;
# make release folder structure
rm -rf _release;
mkdir -p _release/src;
# build language plugin
echo "Build language plugin...";
cd packages/rescript-relay/language-plugin/; yarn; yarn build; cd ..;
# build bindings
echo "Build bindings...";
yarn; yarn build;
# copy bindings and readme
echo "Copying bindings and assets..."
cp -rf src ../../_release;
cp .npmignore ../../_release/;
cp ../../README.md ../../_release/;
cp ../../CHANGELOG.md ../../_release/;
# copy config files
echo "Copying config files..."
cp bsconfig.release.json ../../_release/bsconfig.json;
./copyPackageJson.js ../../_release $INPUT_TAG_NAME
cp yarn.lock ../../_release/;
# copy real post-install
cp -f scripts/release-postinstall.js ../../_release/postinstall.js
# copy language plugin
echo "Copying language plugin..."
mkdir -p ../../_release/language-plugin/dist;
cp -r ./language-plugin/dist ../../_release/language-plugin;
# copy compiler
echo "Copying compiler..."
cp -r ./compiler/ ../../_release/compiler;