From b9b6aba424e8f064e0cb57bfba07f4823ed47451 Mon Sep 17 00:00:00 2001 From: Tashi D Gyeltshen Date: Wed, 29 Nov 2023 16:03:56 -0500 Subject: [PATCH] Upgrade `checkout` and `setup-node` actions to v4. --- .github/workflows/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e55f500b..8368c0ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,28 +15,27 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install - name: Run eslint run: npm run lint test-node: - if: ${{ github.event_name == 'schedule' || - github.event_name == 'workflow_dispatch' }} + if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest timeout-minutes: 15 strategy: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install npm dependencies