|
5 | 5 | workflow_dispatch: |
6 | 6 | inputs: |
7 | 7 | dry-run-enabled: |
8 | | - description: 'Run npm publish with dry-run flag' |
| 8 | + description: "Run npm publish with dry-run flag" |
9 | 9 | required: false |
10 | 10 | type: boolean |
11 | 11 | default: false |
|
27 | 27 | contracts: |
28 | 28 | name: Publish ATS Contracts |
29 | 29 | runs-on: token-studio-linux-large |
30 | | - # Only run if manual trigger OR release tag contains '-ats-'/'-ATS-' |
31 | | - if: ${{ github.event_name == 'workflow_dispatch' || contains(github.ref_name, '-ats-') || contains(github.ref_name, '-ATS-') }} |
| 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') }} |
32 | 32 |
|
33 | 33 | steps: |
34 | 34 | - name: Harden Runner |
|
67 | 67 | DRY_RUN: ${{ inputs.dry-run-enabled }} |
68 | 68 | working-directory: packages/ats/contracts |
69 | 69 | run: | |
70 | | - PUBLISH_ARGS=("--access=restricted") |
| 70 | + PUBLISH_ARGS=("--access=public") |
71 | 71 | if [[ "${DRY_RUN}" == "true" ]]; then |
72 | 72 | PUBLISH_ARGS+=("--dry-run") |
73 | 73 | echo "🔍 DRY RUN MODE: Would publish @hashgraph/asset-tokenization-contracts" |
|
82 | 82 | sdk: |
83 | 83 | name: Publish ATS SDK |
84 | 84 | runs-on: token-studio-linux-large |
85 | | - # Only run if manual trigger OR release tag contains '-ats-'/'-ATS-' |
86 | | - if: ${{ github.event_name == 'workflow_dispatch' || contains(github.ref_name, '-ats-') || contains(github.ref_name, '-ATS-') }} |
| 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') }} |
87 | 87 | # needs: contracts # Commented out for parallel execution |
88 | 88 |
|
89 | 89 | steps: |
@@ -125,7 +125,7 @@ jobs: |
125 | 125 | DRY_RUN: ${{ inputs.dry-run-enabled }} |
126 | 126 | working-directory: packages/ats/sdk |
127 | 127 | run: | |
128 | | - PUBLISH_ARGS=("--access=restricted") |
| 128 | + PUBLISH_ARGS=("--access=public") |
129 | 129 | if [[ "${DRY_RUN}" == "true" ]]; then |
130 | 130 | PUBLISH_ARGS+=("--dry-run") |
131 | 131 | echo "🔍 DRY RUN MODE: Would publish @hashgraph/asset-tokenization-sdk" |
|
0 commit comments