Skip to content

Commit 8dafd74

Browse files
authored
Merge pull request #9 from AztecProtocol/jc/create-tag-workflow
feat: add create-tag workflow for releases
2 parents 2b7c289 + 56e6567 commit 8dafd74

File tree

5 files changed

+106
-21
lines changed

5 files changed

+106
-21
lines changed

.github/workflows/create-tag.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Create Tag
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag_name:
7+
description: 'Tag name (e.g., v1.0.0)'
8+
required: true
9+
type: string
10+
branch:
11+
description: 'Branch to create tag from'
12+
required: true
13+
type: string
14+
default: 'next'
15+
tag_message:
16+
description: 'Tag message/description'
17+
required: false
18+
type: string
19+
default: ''
20+
21+
jobs:
22+
create-tag:
23+
name: Create Tag
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: write
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v5
31+
with:
32+
ref: ${{ inputs.branch }}
33+
fetch-depth: 0
34+
35+
- name: Validate tag name
36+
run: |
37+
TAG_NAME="${{ inputs.tag_name }}"
38+
if [[ ! "$TAG_NAME" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?$ ]]; then
39+
echo "⚠️ Warning: Tag name '$TAG_NAME' doesn't follow semantic versioning (vX.Y.Z)"
40+
fi
41+
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
42+
echo "❌ Error: Tag '$TAG_NAME' already exists"
43+
exit 1
44+
fi
45+
echo "✅ Tag name '$TAG_NAME' is available"
46+
47+
- name: Configure Git
48+
run: |
49+
git config user.name "github-actions[bot]"
50+
git config user.email "github-actions[bot]@users.noreply.github.com"
51+
52+
- name: Create and push tag
53+
run: |
54+
TAG_NAME="${{ inputs.tag_name }}"
55+
TAG_MESSAGE="${{ inputs.tag_message }}"
56+
57+
if [ -n "$TAG_MESSAGE" ]; then
58+
git tag -a "$TAG_NAME" -m "$TAG_MESSAGE"
59+
else
60+
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
61+
fi
62+
63+
git push origin "$TAG_NAME"
64+
echo "✅ Successfully created and pushed tag '$TAG_NAME'"
65+
66+
- name: Output tag info
67+
run: |
68+
echo "## Tag Created Successfully" >> $GITHUB_STEP_SUMMARY
69+
echo "" >> $GITHUB_STEP_SUMMARY
70+
echo "- **Tag:** ${{ inputs.tag_name }}" >> $GITHUB_STEP_SUMMARY
71+
echo "- **Branch:** ${{ inputs.branch }}" >> $GITHUB_STEP_SUMMARY
72+
echo "- **Commit:** $(git rev-parse HEAD)" >> $GITHUB_STEP_SUMMARY
73+
TAG_MESSAGE="${{ inputs.tag_message }}"
74+
echo "- **Message:** ${TAG_MESSAGE:-Release ${{ inputs.tag_name }}}" >> $GITHUB_STEP_SUMMARY
75+
76+
- name: Create GitHub Release
77+
uses: softprops/action-gh-release@v2
78+
with:
79+
tag_name: ${{ inputs.tag_name }}
80+
name: ${{ inputs.tag_name }}
81+
body: ${{ inputs.tag_message || format('Release {0}', inputs.tag_name) }}
82+
draft: false
83+
prerelease: ${{ contains(inputs.tag_name, '-') }}

.github/workflows/e2e.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches: [next]
55
pull_request:
66
branches: [next]
7+
8+
env:
9+
AZTEC_VERSION: 3.0.0-devnet.20251212
10+
711
jobs:
812
test:
913
timeout-minutes: 120
@@ -21,15 +25,13 @@ jobs:
2125
- name: Install Aztec CLI
2226
run: |
2327
curl -s https://install.aztec.network > tmp.sh
24-
bash tmp.sh <<< yes "yes"
28+
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"
2529
2630
- name: Update path
2731
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH
2832

29-
- name: Set Aztec version and start local network
30-
run: |
31-
aztec-up 3.0.0-devnet.20251212
32-
aztec start --local-network &
33+
- name: Start local network
34+
run: aztec start --local-network &
3335

3436
- name: Install dependencies
3537
run: yarn install

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@aztec/wallet-sdk": "3.0.0-devnet.20251212"
3636
},
3737
"devDependencies": {
38-
"@playwright/test": "1.52.0",
38+
"@playwright/test": "1.49.0",
3939
"@types/node": "^22.15.17",
4040
"assert": "^2.1.0",
4141
"buffer": "^6.0.3",

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default (_, argv) => ({
2828
template: './app/index.html',
2929
scriptLoading: 'module',
3030
}),
31-
new Dotenv({ path: './.env' }),
31+
new Dotenv({ path: './.env', silent: true }),
3232
new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
3333
],
3434
resolve: {

yarn.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,12 +1466,12 @@
14661466
resolved "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.34.0.tgz"
14671467
integrity sha512-aKcOkyrorBGlajjRdVoJWHTxfxO1vCNHLJVlSDaRHDIdjU+pX8IYQPvPDkYiujKLbRnWU+1TBwEt0QRgSm4SGA==
14681468

1469-
"@playwright/test@1.52.0":
1470-
version "1.52.0"
1471-
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.52.0.tgz#267ec595b43a8f4fa5e444ea503689629e91a5b8"
1472-
integrity sha512-uh6W7sb55hl7D6vsAeA+V2p5JnlAqzhqFyF0VcJkKZXkgnFcVG9PziERRHQfPLfNGx1C292a4JqbWzhR8L4R1g==
1469+
"@playwright/test@1.49.0":
1470+
version "1.49.0"
1471+
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.49.0.tgz#74227385b58317ee076b86b56d0e1e1b25cff01e"
1472+
integrity sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==
14731473
dependencies:
1474-
playwright "1.52.0"
1474+
playwright "1.49.0"
14751475

14761476
"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
14771477
version "1.1.2"
@@ -5179,17 +5179,17 @@ pkg-dir@^4.2.0:
51795179
dependencies:
51805180
find-up "^4.0.0"
51815181

5182-
playwright-core@1.52.0:
5183-
version "1.52.0"
5184-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.52.0.tgz#238f1f0c3edd4ebba0434ce3f4401900319a3dca"
5185-
integrity sha512-l2osTgLXSMeuLZOML9qYODUQoPPnUsKsb5/P6LJ2e6uPKXUdPK5WYhN4z03G+YNbWmGDY4YENauNu4ZKczreHg==
5182+
playwright-core@1.49.0:
5183+
version "1.49.0"
5184+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.49.0.tgz#8e69ffed3f41855b854982f3632f2922c890afcb"
5185+
integrity sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==
51865186

5187-
playwright@1.52.0:
5188-
version "1.52.0"
5189-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.52.0.tgz#26cb9a63346651e1c54c8805acfd85683173d4bd"
5190-
integrity sha512-JAwMNMBlxJ2oD1kce4KPtMkDeKGHQstdpFPcPH3maElAXon/QZeTvtsfXmTMRyO9TslfoYOXkSsvao2nE1ilTw==
5187+
playwright@1.49.0:
5188+
version "1.49.0"
5189+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.49.0.tgz#df6b9e05423377a99658202844a294a8afb95d0a"
5190+
integrity sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==
51915191
dependencies:
5192-
playwright-core "1.52.0"
5192+
playwright-core "1.49.0"
51935193
optionalDependencies:
51945194
fsevents "2.3.2"
51955195

0 commit comments

Comments
 (0)