forked from neo4j-labs/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·54 lines (39 loc) · 926 Bytes
/
release.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# bump the version number
# npm version patch
# remove old tgz files
rm -f *.tgz
# build
npm run build
# create the .tgz file
npm pack
# unzip it
tar xvf *.tgz package
# remove it
rm -f *.tgz
# sign the code
npx @neo4j/code-signer --app ./package \
--private-key ~/.ssh/vendor.neo4j-labs.key.pem \
--cert ~/.ssh/vendor.neo4j-labs.cert.pem \
--passphrase $GRAPH_APP_PASSPHRASE
# verify it
npx @neo4j/code-signer --verify \
--app ./package \
--root-cert ~/.ssh/neo4j_desktop.cert
# pack it back up again
cd package
npm pack
# move it out of the package folder
mv *.tgz ../
# remove the package folder
cd ../
rm -rf package
# verify it again
tar xvf *.tgz package
npx @neo4j/code-signer --verify \
--app ./package \
--root-cert ~/.ssh/neo4j_desktop.cert
npm publish --access public *.tgz
# Deploy to S3
aws s3 sync --acl public-read dist s3://charts.graphapp.io/
# Push to github
git push origin main