gaztec 1.0.3 → 1.2.0
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.
- package/.github/workflows/release.yml +48 -0
- package/.github/workflows/test.yml +1 -1
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +35 -0
- package/CONTRIBUTING.md +10 -0
- package/README.md +16 -3
- package/action.yml +19 -0
- package/gaztec-install +8 -0
- package/package.json +1 -1
- package/release-please-config.json +20 -0
- package/test/test.sh +2 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release-please:
|
|
10
|
+
name: Create Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
issues: write
|
|
15
|
+
pull-requests: write
|
|
16
|
+
id-token: write
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Run release-please
|
|
20
|
+
id: release
|
|
21
|
+
uses: googleapis/release-please-action@v4
|
|
22
|
+
with:
|
|
23
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
+
config-file: release-please-config.json
|
|
25
|
+
|
|
26
|
+
- name: Checkout
|
|
27
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
28
|
+
uses: actions/checkout@v4
|
|
29
|
+
|
|
30
|
+
- name: Setup pnpm
|
|
31
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
32
|
+
uses: pnpm/action-setup@v4
|
|
33
|
+
|
|
34
|
+
- name: Setup Node.js
|
|
35
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
36
|
+
uses: actions/setup-node@v4
|
|
37
|
+
with:
|
|
38
|
+
node-version: 24
|
|
39
|
+
cache: "pnpm"
|
|
40
|
+
registry-url: "https://registry.npmjs.org"
|
|
41
|
+
|
|
42
|
+
- name: Install dependencies
|
|
43
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
44
|
+
run: pnpm install --frozen-lockfile
|
|
45
|
+
|
|
46
|
+
- name: Publish to npm
|
|
47
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
48
|
+
run: pnpm publish
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.2.0](https://github.com/nemi-fi/gaztec/compare/v1.1.0...v1.2.0) (2026-03-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add action.yml ([#3](https://github.com/nemi-fi/gaztec/issues/3)) ([8abfd07](https://github.com/nemi-fi/gaztec/commit/8abfd07225162f93068ad668bde727e35aa9f0b4))
|
|
9
|
+
|
|
10
|
+
## [1.1.0](https://github.com/nemi-fi/gaztec/compare/v1.0.3...v1.1.0) (2026-03-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Add support for nargo command in gaztec ([5d8ec8d](https://github.com/nemi-fi/gaztec/commit/5d8ec8dfac7c5108dbecd33754d3f703d4a514b7))
|
|
16
|
+
* Fallback to latest ([7fd4ec7](https://github.com/nemi-fi/gaztec/commit/7fd4ec7eab450465d263d0083705b48fdffbe67c))
|
|
17
|
+
* Show gaztec version ([6aff490](https://github.com/nemi-fi/gaztec/commit/6aff4909800b966ac526f015902757c993d28f42))
|
|
18
|
+
* Support aztec v4 dockerless cli ([#2](https://github.com/nemi-fi/gaztec/issues/2)) ([6589e7d](https://github.com/nemi-fi/gaztec/commit/6589e7df67500ddfa53fd2a77a32865d81ded476))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* Add NARGO path to gaztec-install script ([b7e0dad](https://github.com/nemi-fi/gaztec/commit/b7e0dade2339536089b186bfb9be7cb905907435))
|
|
24
|
+
* Bb path ([5ba1cd1](https://github.com/nemi-fi/gaztec/commit/5ba1cd120511967305dd9c0fd6262b110cc26d30))
|
|
25
|
+
* Correct filename from .gaztecrc to .aztecrc in README.md ([a8819bb](https://github.com/nemi-fi/gaztec/commit/a8819bb4bffa0901a9c7f27fcacde475fa135fa1))
|
|
26
|
+
* Fetch the latest version from github ([70d53c8](https://github.com/nemi-fi/gaztec/commit/70d53c8c23736243b12e41bd6943d5780c467f2f))
|
|
27
|
+
* Fix installation ([77643a8](https://github.com/nemi-fi/gaztec/commit/77643a89816a396f9dd4b8cbe8b5fc6a516d8a74))
|
|
28
|
+
* Handle npm prefix in CI environments ([a0e7ef7](https://github.com/nemi-fi/gaztec/commit/a0e7ef782f55353643fd8d17e951e835d49e8afe))
|
|
29
|
+
* Update gaztec-install to set AZTEC_VERSION and modify GITHUB_PATH for CI ([1c7925d](https://github.com/nemi-fi/gaztec/commit/1c7925d57a6909e547624caa762905287a8db5ef))
|
|
30
|
+
|
|
31
|
+
## [1.0.3] - 2025-03-04
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- Support dockerless `aztec` installation
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Releasing
|
|
4
|
+
|
|
5
|
+
Releases are automated with [release-please](https://github.com/googleapis/release-please). Use [Conventional Commits](https://www.conventionalcommits.org/) in your PRs (`feat:`, `fix:`, etc.). When a Release PR is merged, it will:
|
|
6
|
+
|
|
7
|
+
1. Create a GitHub release and tag
|
|
8
|
+
2. Publish to npm
|
|
9
|
+
|
|
10
|
+
**Required secret:** Add `NPM_TOKEN` (npm automation token) to your repo secrets for publishing. Create one at npmjs.com → Account → Access Tokens.
|
package/README.md
CHANGED
|
@@ -43,7 +43,11 @@ npm i gaztec -D
|
|
|
43
43
|
|
|
44
44
|
## CI
|
|
45
45
|
|
|
46
|
-
Commit a `.aztecrc` file to your repo
|
|
46
|
+
Commit a `.aztecrc` file to your repo. Use the **gaztec GitHub Action** for cached installs in your CI(saves 1-2 minutes per run).
|
|
47
|
+
|
|
48
|
+
The action caches Aztec between runs to speed up workflows:
|
|
49
|
+
|
|
50
|
+
<!-- x-release-please-start-version -->
|
|
47
51
|
|
|
48
52
|
```yaml
|
|
49
53
|
name: Test
|
|
@@ -55,11 +59,18 @@ jobs:
|
|
|
55
59
|
runs-on: ubuntu-latest
|
|
56
60
|
steps:
|
|
57
61
|
- uses: actions/checkout@v4
|
|
58
|
-
-
|
|
59
|
-
|
|
62
|
+
- name: Setup Node.js
|
|
63
|
+
uses: actions/setup-node@v4
|
|
60
64
|
with:
|
|
61
65
|
node-version: 24
|
|
62
66
|
|
|
67
|
+
- name: Install dependencies
|
|
68
|
+
run: npm ci
|
|
69
|
+
|
|
70
|
+
# gaztec action requires node.js and installed dependencies to run
|
|
71
|
+
- name: Setup gaztec
|
|
72
|
+
uses: nemi-fi/gaztec@v1.2.0
|
|
73
|
+
|
|
63
74
|
- name: Compile Aztec contracts
|
|
64
75
|
run: npx gaztec compile
|
|
65
76
|
|
|
@@ -67,6 +78,8 @@ jobs:
|
|
|
67
78
|
run: npx gaztec start --local-network
|
|
68
79
|
```
|
|
69
80
|
|
|
81
|
+
<!-- x-release-please-end -->
|
|
82
|
+
|
|
70
83
|
## Compatibility with `aztec`
|
|
71
84
|
|
|
72
85
|
| gaztec version | aztec version |
|
package/action.yml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: "Setup gaztec"
|
|
2
|
+
description: "Restore cache for Aztec and run gaztec installer."
|
|
3
|
+
|
|
4
|
+
runs:
|
|
5
|
+
using: "composite"
|
|
6
|
+
steps:
|
|
7
|
+
- name: Cache Aztec
|
|
8
|
+
uses: actions/cache@v5
|
|
9
|
+
with:
|
|
10
|
+
path: |
|
|
11
|
+
~/.aztec
|
|
12
|
+
~/.foundry
|
|
13
|
+
key: gaztec-${{ runner.os }}
|
|
14
|
+
restore-keys: |
|
|
15
|
+
gaztec-${{ runner.os }}-
|
|
16
|
+
|
|
17
|
+
- name: Install gaztec
|
|
18
|
+
shell: bash
|
|
19
|
+
run: npx gaztec --version
|
package/gaztec-install
CHANGED
|
@@ -51,6 +51,8 @@ if ! $AZTEC_UP list | grep $AZTEC_VERSION; then
|
|
|
51
51
|
$AZTEC_UP install $AZTEC_VERSION
|
|
52
52
|
fi
|
|
53
53
|
|
|
54
|
+
$AZTEC_UP use $AZTEC_VERSION
|
|
55
|
+
|
|
54
56
|
# needed due to a bug. Without this line, it tries to use bb from ~/.bb
|
|
55
57
|
export BB="$AZTEC_PATH/versions/$AZTEC_VERSION/node_modules/.bin/bb"
|
|
56
58
|
# needed due to a bug. Without this line, it tries to use nargo from ~/.nargo
|
|
@@ -61,4 +63,10 @@ if [[ -n "${CI:-}" ]] && command -v npm >/dev/null 2>&1; then
|
|
|
61
63
|
npm config delete prefix
|
|
62
64
|
fi
|
|
63
65
|
|
|
66
|
+
# on github CI (GITHUB_PATH exists), add the aztec path to the path
|
|
67
|
+
if [[ -n "${GITHUB_PATH:-}" ]]; then
|
|
68
|
+
echo "$AZTEC_PATH/versions/$AZTEC_VERSION/bin" >> $GITHUB_PATH
|
|
69
|
+
echo "$AZTEC_PATH/versions/$AZTEC_VERSION/node_modules/.bin" >> $GITHUB_PATH
|
|
70
|
+
fi
|
|
71
|
+
|
|
64
72
|
AZTEC="$AZTEC_PATH/versions/$AZTEC_VERSION/node_modules/.bin/aztec"
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"release-type": "simple",
|
|
3
|
+
"bump-minor-pre-major": true,
|
|
4
|
+
"bump-patch-for-minor-pre-major": true,
|
|
5
|
+
"pull-request-title-pattern": "chore: Release ${version}",
|
|
6
|
+
"group-pull-request-title-pattern": "chore: Release ${version}",
|
|
7
|
+
"packages": {
|
|
8
|
+
".": {
|
|
9
|
+
"release-type": "node",
|
|
10
|
+
"include-component-in-tag": false,
|
|
11
|
+
"extra-files": [
|
|
12
|
+
{
|
|
13
|
+
"type": "generic",
|
|
14
|
+
"path": "README.md"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"plugins": ["sentence-case"]
|
|
20
|
+
}
|