File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish Tier 2
22
33on :
4- workflow_dispatch :
5- inputs :
6- version :
7- description : ' Version to publish (e.g., 0.11.0-beta)'
8- required : true
9- type : string
4+ push :
5+ tags :
6+ - ' Release-Tier2/[0-9]+.[0-9]+.[0-9]+*'
107
118permissions :
129 contents : read
@@ -17,14 +14,18 @@ jobs:
1714 runs-on : ubuntu-latest
1815 environment : pub.dev-tier2
1916 steps :
17+ - name : Extract version
18+ id : version
19+ run : echo "VERSION=${GITHUB_REF#refs/tags/Release-Tier2/}" >> $GITHUB_OUTPUT
20+
2021 - uses : actions/checkout@v4
2122 with :
2223 fetch-depth : 0
2324
2425 - name : Checkout release branch
2526 run : |
26- git fetch origin "release/${{ inputs .version }}"
27- git checkout "release/${{ inputs .version }}"
27+ git fetch origin "release/${{ steps .version.outputs.VERSION }}"
28+ git checkout "release/${{ steps .version.outputs.VERSION }}"
2829
2930 - uses : ./.github/actions/setup
3031 with :
3334 - name : Publish packages
3435 run : |
3536 chmod +x .github/scripts/publish-packages.sh
36- .github/scripts/publish-packages.sh "${{ inputs .version }}" reflux dart_node_express dart_node_ws dart_node_better_sqlite3 dart_node_mcp
37+ .github/scripts/publish-packages.sh "${{ steps .version.outputs.VERSION }}" reflux dart_node_express dart_node_ws dart_node_better_sqlite3 dart_node_mcp
Original file line number Diff line number Diff line change 11name : Publish Tier 3
22
33on :
4- workflow_dispatch :
5- inputs :
6- version :
7- description : ' Version to publish (e.g., 0.11.0-beta)'
8- required : true
9- type : string
4+ push :
5+ tags :
6+ - ' Release-Tier3/[0-9]+.[0-9]+.[0-9]+*'
107
118permissions :
129 contents : write
@@ -17,15 +14,19 @@ jobs:
1714 runs-on : ubuntu-latest
1815 environment : pub.dev-tier3
1916 steps :
17+ - name : Extract version
18+ id : version
19+ run : echo "VERSION=${GITHUB_REF#refs/tags/Release-Tier3/}" >> $GITHUB_OUTPUT
20+
2021 - uses : actions/checkout@v4
2122 with :
2223 fetch-depth : 0
2324 token : ${{ secrets.GITHUB_TOKEN }}
2425
2526 - name : Checkout release branch
2627 run : |
27- git fetch origin "release/${{ inputs .version }}"
28- git checkout "release/${{ inputs .version }}"
28+ git fetch origin "release/${{ steps .version.outputs.VERSION }}"
29+ git checkout "release/${{ steps .version.outputs.VERSION }}"
2930
3031 - uses : ./.github/actions/setup
3132 with :
3435 - name : Publish packages
3536 run : |
3637 chmod +x .github/scripts/publish-packages.sh
37- .github/scripts/publish-packages.sh "${{ inputs .version }}" dart_node_react dart_node_react_native
38+ .github/scripts/publish-packages.sh "${{ steps .version.outputs.VERSION }}" dart_node_react dart_node_react_native
3839
3940 - name : Switch dependencies to local
4041 run : dart run tools/switch_deps.dart local
4849 echo "No changes to commit"
4950 else
5051 git commit -m "chore: switch to local dependencies after publish"
51- git push origin release/${{ inputs .version }}
52+ git push origin release/${{ steps .version.outputs.VERSION }}
5253 fi
You can’t perform that action at this time.
0 commit comments