Skip to content

Merge pull request #264 from PabloLec/dependabot/npm_and_yarn/types/n… #314

Merge pull request #264 from PabloLec/dependabot/npm_and_yarn/types/n…

Merge pull request #264 from PabloLec/dependabot/npm_and_yarn/types/n… #314

Workflow file for this run

name: Node.js Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'node'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
automerge-dependabot:
runs-on: ubuntu-latest
needs: [build]
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}