From f68a72eeb002e58f03ca3ef1b06418814dc55d6e Mon Sep 17 00:00:00 2001 From: PabloLec Date: Wed, 1 Nov 2023 11:18:28 +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..179fac1 --- /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]' + + 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 }}