Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix update versions action #295

Merged
merged 2 commits into from
Dec 5, 2023
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
9 changes: 7 additions & 2 deletions .github/workflows/update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 16.17.0
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm install -g yarn
- name: Update preview app
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
Expand All @@ -40,3 +40,8 @@ jobs:
uses: peter-evans/create-pull-request@v4
with:
branch: update-versions-to-${{ steps.latesttag.outputs.tag }}
title: Update @ably/ui version in repo to ${{ steps.latesttag.outputs.tag }}
body: "Update files that are not updated during the release process.
Sometimes published packages are not available immediately so we open this PR for convenience."
# This is doesn't work due to what seems a permission issue https://github.com/peter-evans/create-pull-request/issues/155
# team-reviewers: "team-website"
2 changes: 2 additions & 0 deletions scripts/update-dependents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if [ -z "$WEBSITE_RESULT" ]; then
else
echo "Failed to trigger workflow:"
echo $WEBSITE_RESULT
exit 1
fi

echo ""
Expand All @@ -37,4 +38,5 @@ if [ -z "$VOLTAIRE_RESULT" ]; then
else
echo "Failed to trigger workflow:"
echo $VOLTAIRE_RESULT
exit 1
fi