From 82b483c826caa6fa7f62d6d4934867d7b99e43be Mon Sep 17 00:00:00 2001 From: oddyamill <43600905+oddyamill@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:05:36 +0700 Subject: [PATCH] feat(actions): check npm dependencies --- .github/workflows/check-dependencies.yml | 19 +++++++++++++++++++ .github/workflows/publish-docker.yml | 1 + 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/check-dependencies.yml diff --git a/.github/workflows/check-dependencies.yml b/.github/workflows/check-dependencies.yml new file mode 100644 index 0000000..cedaed8 --- /dev/null +++ b/.github/workflows/check-dependencies.yml @@ -0,0 +1,19 @@ +name: Check NPM dependencies + +on: + pull_request: + paths: ["package.json", "package-lock.json"] + +jobs: + check: + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - name: Install dependencies + run: npm ci diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index b68d6ed..f78d123 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -19,6 +19,7 @@ jobs: contents: read packages: write id-token: write + name: Build image for ${{ matrix.target }} if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout repository