-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·52 lines (38 loc) · 897 Bytes
/
release.sh
File metadata and controls
executable file
·52 lines (38 loc) · 897 Bytes
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
# 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
# Publish on NPM
npm publish --access public *.tgz
# Sync to S3
aws s3 sync --profile devrel dist s3://n10s.graphapp.io