From f40393790b57dca7f7d2d96a78f38cff965bd3e1 Mon Sep 17 00:00:00 2001 From: adolphzhang Date: Mon, 14 Oct 2024 14:35:34 +0800 Subject: [PATCH] chore: update action --- .github/workflows/build-docker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index bb7945a0..d2f8d62b 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -5,6 +5,8 @@ on: branches: - refactor - dev + paths: + - 'src/**' jobs: build: @@ -12,12 +14,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '16' + node-version: '20' - name: Install dependencies run: npm install @@ -26,7 +28,7 @@ jobs: run: npm run build:docker - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }}