perf(ci): single setup job with artifact sharing, caching, concurrency groups, fix badges

This commit is contained in:
sanjibdevnathlabs
2026-03-13 15:32:22 +05:30
parent fcb0858165
commit 19ed8bd1fc
4 changed files with 108 additions and 62 deletions
+12 -1
View File
@@ -6,6 +6,10 @@ on:
types: [completed]
branches: [main]
concurrency:
group: release-main
cancel-in-progress: true
permissions:
contents: write
id-token: write
@@ -185,9 +189,16 @@ jobs:
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Cache node_modules
id: cache-nm
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-node20.x-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-nm.outputs.cache-hit != 'true'
run: npm ci
- name: Build