From 9c7caad2d3d3ec91f027b1c5f7775b33abeaf4e9 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Wed, 27 Aug 2025 19:02:38 +0200 Subject: [PATCH] ci: update workflow main.yml to node20 / Node.js 22 Add event trigger for pull_request to master branch --- .github/workflows/main.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3078e47..13fe83f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,15 +1,19 @@ name: Test and Release (if master) -on: push +on: + push: + pull_request: + branches: + - 'master' jobs: ci: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 22 - run: npm ci - run: npm test # - if: github.ref == 'refs/heads/master' - # run: npm run semantic-release \ No newline at end of file + # run: npm run semantic-release