Skip to content

chore(deps): update dependency eslint to v10 #331

chore(deps): update dependency eslint to v10

chore(deps): update dependency eslint to v10 #331

Workflow file for this run

name: Transpile
on:
pull_request:
branches:
- main
jobs:
codegen:
name: Generate
if: github.actor != vars.BOT_USERNAME && github.actor != vars.APP_NAME_TAGPR
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Fetch GitHub App Token
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
id: token
with:
app-id: ${{ vars.APP_ID_TAGPR }}
private-key: ${{ secrets.PRIVATE_KEY_TAGPR }}
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
token: ${{ steps.token.outputs.token }}
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: install
run: npm ci
- name: Build dist/ Directory
id: build
run: npm run bundle
- name: Generate Code
id: generate
run: npm run generate
- name: Check diff
id: diff
continue-on-error: true
run: git diff --exit-code
- name: Push
env:
BOT_EMAIL: ${{ vars.BOT_EMAIL }}
BOT_USERNAME: ${{ vars.BOT_USERNAME }}
if:
github.event_name == 'pull_request' && steps.diff.outcome == 'failure'
run: |
git config --global user.email "${BOT_EMAIL}"
git config --global user.name "${BOT_USERNAME}"
git commit -am "chore: generate code"
git push