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