Skip to content

Commit aa30c3c

Browse files
Consolidate script
1 parent c364174 commit aa30c3c

2 files changed

Lines changed: 17 additions & 60 deletions

File tree

.github/workflows/finalize-release.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/publish-tier3.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
type: string
1010

1111
permissions:
12-
contents: read
12+
contents: write
1313
id-token: write
1414

1515
jobs:
@@ -20,6 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
23+
token: ${{ secrets.GITHUB_TOKEN }}
2324

2425
- name: Checkout release branch
2526
run: |
@@ -34,3 +35,18 @@ jobs:
3435
run: |
3536
chmod +x .github/scripts/publish-packages.sh
3637
.github/scripts/publish-packages.sh "${{ inputs.version }}" dart_node_react dart_node_react_native
38+
39+
- name: Switch dependencies to local
40+
run: dart run tools/switch_deps.dart local
41+
42+
- name: Commit local dependencies to release branch
43+
run: |
44+
git config user.name "github-actions[bot]"
45+
git config user.email "github-actions[bot]@users.noreply.github.com"
46+
git add -A
47+
if git diff --staged --quiet; then
48+
echo "No changes to commit"
49+
else
50+
git commit -m "chore: switch to local dependencies after publish"
51+
git push origin release/${{ inputs.version }}
52+
fi

0 commit comments

Comments
 (0)