This is an automated email from the ASF dual-hosted git repository.
harishgokul01 pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
The following commit(s) were added to refs/heads/development by this push:
new 837e2f2d update workflow - resolve caching
837e2f2d is described below
commit 837e2f2d8a50a89577c075522bc91a411fa66d94
Author: harish876 <[email protected]>
AuthorDate: Tue Jan 20 00:23:40 2026 +0000
update workflow - resolve caching
---
.github/workflows/deploy-ecosystem.yml | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/deploy-ecosystem.yml
b/.github/workflows/deploy-ecosystem.yml
index 1a5fd67e..7787ba7b 100644
--- a/.github/workflows/deploy-ecosystem.yml
+++ b/.github/workflows/deploy-ecosystem.yml
@@ -87,7 +87,6 @@ jobs:
const { execSync } = require('child_process');
const config = JSON.parse(process.env.DEPLOY_CONFIG_JSON);
- // Manual trigger: deploy specific project or all
if ('${{ github.event_name }}' === 'workflow_dispatch') {
if ('${{ inputs.project_name }}') {
const project = config.projects.find(p => p.name === '${{
inputs.project_name }}');
@@ -104,7 +103,6 @@ jobs:
}
}
- // Get changed files (only for push events)
let changedFiles = [];
if ('${{ github.event_name }}' === 'push') {
try {
@@ -113,13 +111,11 @@ jobs:
.trim()
.split('\n')
.filter(Boolean);
- } catch (error) {
- // If git diff fails, deploy all projects
+ } catch {
changedFiles = ['ecosystem/'];
}
}
- // Find projects with changed files, or if workflow/config changed
const workflowChanged = changedFiles.some(f =>
f.includes('deploy-ecosystem') ||
f.includes('deploy-ecosystem-configs')
);
@@ -158,7 +154,11 @@ jobs:
with:
node-version: '20'
cache: 'npm'
- cache-dependency-path: ${{ matrix.project.path }}/package-lock.json
+ cache-dependency-path: |
+ **/package-lock.json
+ **/npm-shrinkwrap.json
+ **/yarn.lock
+ **/pnpm-lock.yaml
- name: Enable Corepack (for pnpm/yarn if needed)
run: corepack enable
@@ -187,7 +187,6 @@ jobs:
VERCEL_ORG_ID: ${{ matrix.project.vercel_org_id ||
secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ matrix.project.vercel_project_id }}
run: |
- # Link to existing project if IDs are specified, otherwise let
vercel create one
if [ -n "$VERCEL_PROJECT_ID" ] && [ -n "$VERCEL_ORG_ID" ]; then
mkdir -p .vercel
echo "$VERCEL_ORG_ID" > .vercel/org-id
@@ -200,15 +199,13 @@ jobs:
working-directory: ${{ matrix.project.path }}
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: |
- vercel build --prod --token=$VERCEL_TOKEN
+ run: vercel build --prod --token=$VERCEL_TOKEN
- name: Deploy to Vercel
working-directory: ${{ matrix.project.path }}
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: |
- vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
+ run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
- name: Deployment Summary
if: always()