### TL;DR This PR adjusts the `.changeset/config.json` to update dependency settings and reorganizes changeset markdown files under a new directory. ### What changed? - Removed `fixed` and `linked` fields from the `.changeset/config.json`. - Updated the `ignore` array in `config.json` to include additional thirdweb-dev packages. - Moved existing `.changeset/*.md` files to a newly created `v4-changesets-apply-later` directory. ### How to test? Verify that dependency updates and changeset file reorganization are reflected correctly in the `.changeset/config.json` and file structure. ### Why make this change? We are temporarily only releasing v5 packages (while figuring a path forward regarding `@thirdweb-dev/react` with npm). ---
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
name: Sync chains every hour
|
|
|
|
on:
|
|
# temporarily disabled chain syncing
|
|
# schedule:
|
|
# - cron: "0 * * * *" # Runs every hour
|
|
workflow_dispatch: # Allows you to manually run the workflow from the Actions tab
|
|
|
|
jobs:
|
|
sync-chains:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: 1.0.35
|
|
|
|
- name: Run chains sync
|
|
run: bun run db:sync
|
|
working-directory: ./legacy_packages/chains
|
|
|
|
- name: Check for Changes
|
|
id: git-check
|
|
run: |
|
|
if git diff --quiet; then
|
|
echo "CHANGES_FOUND=false" >> $GITHUB_ENV
|
|
else
|
|
echo "CHANGES_FOUND=true" >> $GITHUB_ENV
|
|
fi
|
|
|
|
- name: Create or Update sync-chains.md
|
|
if: env.CHANGES_FOUND == 'true'
|
|
run: |
|
|
echo '---' > .changeset/sync-chains.md
|
|
echo '"@thirdweb-dev/chains": patch' >> .changeset/sync-chains.md
|
|
echo '---' >> .changeset/sync-chains.md
|
|
echo '' >> .changeset/sync-chains.md
|
|
echo 'Synced Chains Package' >> .changeset/sync-chains.md
|
|
|
|
- name: Commit Changes
|
|
if: env.CHANGES_FOUND == 'true'
|
|
run: |
|
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git config --local user.name "github-actions[bot]"
|
|
git add -A
|
|
git commit -m "chore(chains): sync from db"
|
|
|
|
- name: Create or Update Pull Request
|
|
if: env.CHANGES_FOUND == 'true'
|
|
uses: peter-evans/create-pull-request@v6
|
|
with:
|
|
title: "chore(chains): update chains"
|
|
branch: "sync-chains"
|
|
body: "This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database."
|
|
commit-message: "chore(chains): sync from db"
|