Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloLec committed Nov 1, 2023
1 parent 4dbe953 commit f68a72e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node.js Build

on:
push:
pull_request:


jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- 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 }}

0 comments on commit f68a72e

Please sign in to comment.