From 11de0936752232220a771e793348fd6ab2af8110 Mon Sep 17 00:00:00 2001 From: PabloLec Date: Wed, 1 Nov 2023 11:16:56 +0100 Subject: [PATCH] Add build workflow --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3bac7f3 --- /dev/null +++ b/.github/workflows/build.yml @@ -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]' && github.event.pull_request.base.ref == 'develop' + + 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 }}