Merge pull request #266 from PabloLec/dependabot/npm_and_yarn/types/n… #318
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |