gaztec 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/gaztec-install +4 -2
  2. package/package.json +1 -1
package/gaztec-install CHANGED
@@ -26,8 +26,10 @@ done
26
26
 
27
27
  # fallback
28
28
  if [[ -z "$AZTEC_VERSION" ]]; then
29
- echo "No .gaztecrc file found in the current or parent directories starting from $(pwd). Falling back to latest version."
30
- AZTEC_VERSION="latest"
29
+ echo "No .gaztecrc file found in the current or parent directories starting from $(pwd). Falling back to the latest version."
30
+ # fetch the latest version from github releases, remove the v prefix
31
+ AZTEC_VERSION=$(curl -s https://api.github.com/repos/AztecProtocol/aztec-packages/releases/latest | jq -r '.tag_name' | sed 's/^v//')
32
+ echo "Latest version is $AZTEC_VERSION"
31
33
  fi
32
34
 
33
35
  export VERSION=$AZTEC_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaztec",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Aztec version manager",
6
6
  "repository": {