Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: 2
updates:
# Root package.json — main content editor source and build tooling
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "03:30" # 30 min after dependency-submission workflow (03:00 UTC)
timezone: "UTC"
open-pull-requests-limit: 10
labels:
- "dependencies"
commit-message:
prefix: "chore(deps)"
groups:
sunbird:
patterns:
- "@project-sunbird/*"
gulp-tools:
patterns:
- "gulp*"
- "grunt*"
webpack-tools:
patterns:
- "webpack*"
- "*-loader"
- "clean-webpack-plugin"
- "copy-webpack-plugin"
- "mini-css-extract-plugin"
- "html-webpack-plugin"
- "zip-webpack-plugin"
- "compression-webpack-plugin"
karma-testing:
patterns:
- "karma*"
- "jasmine*"
eslint:
patterns:
- "eslint*"

# deploy/ has its own package.json with gulp deployment tooling
- package-ecosystem: "npm"
directory: "/deploy"
schedule:
interval: "weekly"
day: "monday"
time: "03:30"
timezone: "UTC"
open-pull-requests-limit: 5
labels:
- "dependencies"
commit-message:
prefix: "chore(deps)"
groups:
gulp-tools:
patterns:
- "gulp*"

# Keep GitHub Actions workflow action versions updated
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "03:30"
timezone: "UTC"
labels:
- "dependencies"
commit-message:
prefix: "chore(ci)"
50 changes: 50 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Dependency Submission

on:
schedule:
- cron: '0 3 * * 1' # 03:00 UTC every Monday — runs before Dependabot (03:30)
push:
branches: [master]
paths:
- 'package.json'
- 'package-lock.json'
- 'deploy/package.json'
pull_request:
branches: [master]
paths:
- 'package.json'
- 'package-lock.json'
- 'deploy/package.json'
workflow_dispatch:

permissions:
contents: write

jobs:
submit-npm-root:
name: Submit npm (root)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: advanced-security/npm-dependency-submission-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

submit-npm-deploy:
name: Submit npm (deploy/)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
# No lock file in deploy/ — generate one without installing node_modules
- run: npm install --package-lock-only
working-directory: deploy
- uses: advanced-security/npm-dependency-submission-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
directory: ./deploy