Skip to content

chore: update components #246

chore: update components

chore: update components #246

name: Fix package.json
on:
pull_request:
jobs:
fix_package_json:
name: Fix package.json
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
steps:
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
id: app-token
with:
client-id: ${{ secrets.COMMIT_BOT_CLIENT_ID }}
private-key: ${{ secrets.COMMIT_BOT_PRIVATE_KEY }}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Fix package.json
run: |
node scripts/generate-exports.js
npx oxlint --fix
npx oxfmt package.json
- uses: planetscale/ghcommit-action@a6b150b81dca5dd027baa898604418eec9e11465 # v0.2.22
with:
commit_message: "chore: fix package.json exports"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}