Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/publish-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
permissions:
contents: write

# Serialize runs: the mirror push force-updates fabric-go's main, so two
# concurrent runs race on the ref ("cannot lock ref refs/heads/main").
# Queue instead of cancel so no publish is dropped.
concurrency:
group: publish-go
cancel-in-progress: false

jobs:
publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,5 +54,14 @@ jobs:
git commit -m "Release ${VERSION}"
git tag "${VERSION}"
git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/spacesprotocol/fabric-go.git"
git push origin main --force
# Force-mirror main; retry the ref update in case a concurrent run
# moved it between negotiation and lock (belt-and-suspenders on top
# of the concurrency group above).
for attempt in 1 2 3; do
if git push origin main --force; then
break
fi
echo "main push attempt ${attempt} failed; retrying in 5s"
sleep 5
done
git push origin "${VERSION}"
2 changes: 1 addition & 1 deletion fabric/js/fabric-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "tsc"
},
"dependencies": {
"@spacesprotocol/fabric-core": "^0.1.0",
"@spacesprotocol/fabric-core": "*",
"@spacesprotocol/react-native-libveritas": "^0.3.1",
"uniffi-bindgen-react-native": "0.29.3-1"
},
Expand Down
2 changes: 1 addition & 1 deletion fabric/js/fabric-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@noble/curves": "^1.8.0",
"@spacesprotocol/fabric-core": "^0.1.0",
"@spacesprotocol/fabric-core": "*",
"@spacesprotocol/libveritas": "^0.3.1"
},
"devDependencies": {
Expand Down
Loading