Skip to content

Commit 26421ab

Browse files
committed
fix(ci): correct ATS release and publish workflow issues
- ats.release.yml: Fix --ignore flag to use correct @mass-payout/* namespace (was using non-existent @hashgraph/mass-payout* pattern) - ats.publish.yml: Change trigger from release:published to tag push for simpler automation (push tag → publish, no need to create GitHub release separately) Signed-off-by: Miguel_LZPF <[email protected]>
1 parent 9071e73 commit 26421ab

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/ats.publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ on:
1010
type: boolean
1111
default: false
1212

13-
# Release published trigger (GitHub release creation) - only for ATS releases (tags ending with -ats)
14-
release:
15-
types:
16-
- published
13+
# Tag push trigger - simpler and automatic (no need to create GitHub release)
14+
push:
15+
tags:
16+
- "v*-ats"
17+
- "v*-ATS"
1718

1819
defaults:
1920
run:
@@ -27,8 +28,8 @@ jobs:
2728
contracts:
2829
name: Publish ATS Contracts
2930
runs-on: token-studio-linux-large
30-
# Only run if manual trigger OR release tag contains/ends with '-ats'/'-ATS'
31-
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.ref_name, '-ats-') || endsWith(github.ref_name, '-ats') }}
31+
# Only run if manual trigger OR tag push (already filtered by v*-ats pattern)
32+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
3233

3334
steps:
3435
- name: Harden Runner
@@ -82,8 +83,8 @@ jobs:
8283
sdk:
8384
name: Publish ATS SDK
8485
runs-on: token-studio-linux-large
85-
# Only run if manual trigger OR release tag contains/ends with '-ats'/'-ATS'
86-
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.ref_name, '-ats-') || endsWith(github.ref_name, '-ats') }}
86+
# Only run if manual trigger OR tag push (already filtered by v*-ats pattern)
87+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
8788
# needs: contracts # Commented out for parallel execution
8889

8990
steps:

.github/workflows/ats.release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ jobs:
8787
run: |
8888
echo "🚀 Releasing ATS packages only (ignoring Mass Payout packages)"
8989
90-
npx changeset version --ignore "@hashgraph/mass-payout*"
90+
# Ignore all mass-payout packages (they use @mass-payout/* namespace)
91+
npx changeset version \
92+
--ignore "@mass-payout/contracts" \
93+
--ignore "@mass-payout/sdk" \
94+
--ignore "@mass-payout/backend" \
95+
--ignore "@mass-payout/frontend"
9196
9297
if [[ -n "$(git status --porcelain)" ]]; then
9398
echo "✅ Version bump completed for ATS packages"

0 commit comments

Comments
 (0)