Skip to content
Draft
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
20 changes: 19 additions & 1 deletion .github/workflows/miniflare-dependabot-versioning-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

jobs:
generate-changeset:
runs-on: ubuntu-slim
runs-on: ubuntu-latest
if: |
github.event.pull_request.user.login == 'dependabot[bot]'
steps:
Expand All @@ -26,11 +26,29 @@ jobs:
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Install Cap'n Proto compiler
run: |
sudo apt-get update
sudo apt-get install -y capnproto

- name: Configure Git
run: |
git config --global user.email wrangler@cloudflare.com
git config --global user.name 'Wrangler automated PR updater'

- name: Regenerate compatibility flags
run: |
pnpm --filter miniflare run capnp:compat

# Commit the regenerated files if there are changes
git add packages/miniflare/src/shared/compatibility-date.ts packages/miniflare/src/shared/compatibility-flags-metadata.ts
if git diff --cached --quiet; then
echo "No changes to compatibility flags files"
else
git commit -m "chore(miniflare): regenerate compatibility flags for workerd update"
git push
fi

- name: Generate Miniflare changesets
# The paremeters to the script are:
# - PR: The number of the current Dependabot PR
Expand Down
1 change: 1 addition & 0 deletions packages/miniflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
],
"scripts": {
"build": "node scripts/build.mjs && pnpm run types:build",
"capnp:compat": "node scripts/build-capnp-compat.mjs",
"capnp:workerd": "node scripts/build-capnp.mjs",
"check:lint": "eslint --max-warnings=0 \"{src,test}/**/*.ts\" \"types/**/*.ts\"",
"check:type": "tsc",
Expand Down
Loading
Loading