Improve packages.json and add release script
License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
parent
b388a45e92
commit
9eb88f892d
0
.gx/lastpubver
Normal file
0
.gx/lastpubver
Normal file
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"author": "hector",
|
||||
"author": "hsanjuan",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ipfs/ipfs-cluster"
|
||||
},
|
||||
|
@ -58,7 +58,7 @@
|
|||
],
|
||||
"gxVersion": "0.10.0",
|
||||
"language": "go",
|
||||
"license": "",
|
||||
"license": "MIT",
|
||||
"name": "ipfs-cluster",
|
||||
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
|
||||
"version": "0.0.0"
|
||||
|
|
16
release.sh
Executable file
16
release.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Updates the Version variables, commits, and "gx release" the package
|
||||
|
||||
version="$1"
|
||||
|
||||
if [ -z $version ]; then
|
||||
echo "Need a version!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git tag v$version
|
||||
sed -i "s/const Version.*$/const Version = \"$version\"/" version.go
|
||||
sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go
|
||||
git commit -a -m "Release $version"
|
||||
gx release $version
|
Loading…
Reference in New Issue
Block a user