From a59daa36be685c8bfb1aed1ff129708524a527bc Mon Sep 17 00:00:00 2001 From: avivkeller Date: Sat, 26 Jul 2025 11:25:04 -0400 Subject: [PATCH 1/3] feat(deps): update dependabot config and add support for @node-core --- .github/dependabot.yml | 48 ++++++++++++++--- .../update-internal-dependencies.yml | 53 +++++++++++++++++++ 2 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/update-internal-dependencies.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e3136496..a58e4343 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -20,20 +20,56 @@ updates: interval: monthly commit-message: prefix: meta + ignore: + - dependency-name: '@node-core/*' cooldown: default-days: 3 groups: - format: + orama: patterns: - - 'prettier' + - '@orama/*' + cli: + patterns: + - 'commander' + - '@clack/prompts' lint: patterns: + - 'prettier' - 'eslint' - 'eslint-*' - - '@eslint/*' + - 'lint-staged' - 'globals' - - 'stylelint-*' - orama: + - '@eslint/*' + unist: patterns: - - '@orama/*' + - 'unified' + - 'unist-*' + - 'vfile' + remark: + patterns: + - 'remark-*' + - 'shiki' + rehype: + patterns: + - 'rehype-*' + ast: + patterns: + - 'estree-*' + - 'hast-*' + - 'mdast-*' + - 'hastscript' + - 'acorn' + recma: + patterns: + - 'recma-*' + compiling: + patterns: + - '@minify-html/node' + - '@rollup/*' + - 'rolldown' + - 'lightningcss' + react: + patterns: + - 'preact' + - 'preact-*' open-pull-requests-limit: 10 diff --git a/.github/workflows/update-internal-dependencies.yml b/.github/workflows/update-internal-dependencies.yml new file mode 100644 index 00000000..cde95bd7 --- /dev/null +++ b/.github/workflows/update-internal-dependencies.yml @@ -0,0 +1,53 @@ +name: Upgrade @node-core/* Dependencies + +on: + workflow_dispatch: + schedule: + - cron: '0 3 * * 0' # Runs weekly on Sunday at 03:00 UTC + +env: + COMMIT_MESSAGE: 'chore: upgrade internal dependencies to latest versions' + +jobs: + upgrade-node-core-deps: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + + - name: Set up Node.js + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 + + - name: Upgrade @node-core/* dependencies in package.json + run: | + # Parse package.json and find @node-core/* dependencies (both deps/devDeps) + for section in dependencies devDependencies; do + jq -r --arg section "$section" '.[$section] | keys[]' package.json | grep '^@node-core/' | while read dep; do + # Get latest version from npm + latest=$(npm view "$dep" version) + echo "Upgrading $dep to $latest" + # Use jq to update the version in package.json + jq --arg section "$section" --arg dep "$dep" --arg ver "^$latest" \ + '(.[$section][$dep]) |= $ver' package.json > package.json.tmp && mv package.json.tmp package.json + done + done + + - name: Install upgraded dependencies + run: npm install + with: + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Create or update PR for upgraded dependencies + uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1 + with: + title: ${{ env.COMMIT_MESSAGE }} + body: 'This PR upgrades all @node-core/* dependencies in package.json to their latest versions.' + commit-message: ${{ env.COMMIT_MESSAGE }} + branch: 'upgrade-node-core-deps' + path: '.' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 09c78493647efc1eb83eae7e4afa5c0c915130c8 Mon Sep 17 00:00:00 2001 From: avivkeller Date: Sat, 26 Jul 2025 11:29:57 -0400 Subject: [PATCH 2/3] fixup\! --- .github/workflows/update-internal-dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-internal-dependencies.yml b/.github/workflows/update-internal-dependencies.yml index cde95bd7..d8c9e620 100644 --- a/.github/workflows/update-internal-dependencies.yml +++ b/.github/workflows/update-internal-dependencies.yml @@ -20,6 +20,9 @@ jobs: - name: Set up Node.js uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 + with: + node-version-file: '.nvmrc' + cache: 'npm' - name: Upgrade @node-core/* dependencies in package.json run: | @@ -37,9 +40,6 @@ jobs: - name: Install upgraded dependencies run: npm install - with: - node-version-file: '.nvmrc' - cache: 'npm' - name: Create or update PR for upgraded dependencies uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1 From b6c52a8c93d50b1b7ccebd485e1c2866e6cce4dc Mon Sep 17 00:00:00 2001 From: avivkeller Date: Sat, 26 Jul 2025 11:35:02 -0400 Subject: [PATCH 3/3] fixup! --- .github/workflows/update-internal-dependencies.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-internal-dependencies.yml b/.github/workflows/update-internal-dependencies.yml index d8c9e620..60408ed6 100644 --- a/.github/workflows/update-internal-dependencies.yml +++ b/.github/workflows/update-internal-dependencies.yml @@ -19,7 +19,7 @@ jobs: persist-credentials: false - name: Set up Node.js - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.nvmrc' cache: 'npm'