Skip to content

chore(deps-dev): bump vitest and @vitest/coverage-v8 #53

chore(deps-dev): bump vitest and @vitest/coverage-v8

chore(deps-dev): bump vitest and @vitest/coverage-v8 #53

Workflow file for this run

name: Bump oxlint
on:
pull_request:
types:
- labeled
permissions:
pull-requests: write
contents: write
env:
OXLINT_PACKAGE_NAME: oxlint
jobs:
bump-oxlint-rules:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' && github.event.label.name == 'dependencies'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
if: contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME)
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install pnpm
if: contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME)
uses: pnpm/action-setup@v2
- name: Set node
if: contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME)
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: pnpm
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
if: contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME)
run: pnpm i
- name: Bump oxlint rules
if: contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME)
run: |
# Generate rules from latest oxlint
pnpm run generate
# Update test snapshots
pnpm run test -u
# Commit and push changes
git config --global user.name "dependabot[bot]"
git config --global user.email "49699333+dependabot[bot]@users.noreply.github.com"
git commit -am "feat(oxlint): bump oxlint rules"
git push
# Edit title message for changelog purpose
gh pr edit "$PR_URL" --title "feat(oxlint): bump oxlint rules"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}