From 6854b6466cb6fce9f0e2cabe7bfa09509bfb44d4 Mon Sep 17 00:00:00 2001 From: Aditya <97450298+1234-ad@users.noreply.github.com> Date: Mon, 12 Jan 2026 22:06:13 +0530 Subject: [PATCH] chore: Update GitHub Actions and add npm caching - Update actions/checkout from v3 to v4 - Update actions/setup-node from v3 to v4 - Add npm caching to speed up workflow execution - Reduces build time and improves CI/CD performance Fixes #54 --- .github/workflows/npm-publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 760dafe..a214db7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,10 +11,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 + cache: 'npm' - run: npm ci - run: npm test @@ -22,11 +23,12 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 registry-url: https://registry.npmjs.org/ + cache: 'npm' - name: build and publish run: | npm ci