Skip to content

test: improve coverage for tool execute callbacks and file-scanner ed… #1

test: improve coverage for tool execute callbacks and file-scanner ed…

test: improve coverage for tool execute callbacks and file-scanner ed… #1

Workflow file for this run

name: Package dist
on:
push:
branches:
- v2
paths:
- 'src/**'
- 'package.json'
- 'bun.lock'
- 'tsconfig.json'
permissions:
contents: write
concurrency:
group: package-dist
cancel-in-progress: false
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build dist
run: bun run package
- name: Check for changes
id: check_changes
run: |
if git diff --quiet dist/; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Commit and push changes
if: steps.check_changes.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist/
git commit --no-verify -m "chore: update dist [skip ci]"
git pull --rebase origin v2 || exit 0
git push origin v2 || exit 0