Skip to content

Commit 682d9cb

Browse files
authored
build(deps): update actions and add interactive npm upgrades
1 parent 51fd76d commit 682d9cb

4 files changed

Lines changed: 25 additions & 5 deletions

File tree

‎.github/workflows/__renovate.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
permission-workflows: write
3232

3333
- name: Run Renovate
34-
uses: renovatebot/github-action@1c0cf989c02653fba0efe7ca5772338860ca71dc # v46.3.12
34+
uses: renovatebot/github-action@266fef21329c44765ad42f9dea1f01f5d2d91084 # v46.3.13
3535
with:
3636
token: ${{ steps.generate-token.outputs.token }}
3737
env:

‎Makefile‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.PHONY: help
1+
SHELL := /bin/bash
2+
3+
.PHONY: help npm-update
24

35
help: ## Display help
46
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -19,6 +21,9 @@ setup: ## Install npm dependencies for all package.json files under actions/
1921
@echo "Installing npm dependencies for all packages..."
2022
$(call run_npm_for_packages,install)
2123

24+
npm-update: ## Interactively update npm dependencies for all packages
25+
$(call run_npm_for_packages,exec --yes --package=npm-check-updates -- ncu --interactive --cwd "$$pkg_dir")
26+
2227
npm-audit-fix: ## Execute npm audit fix
2328
@echo "Running npm audit fix for all packages..."
2429
$(call run_npm_for_packages,audit fix)

‎actions/create-and-merge-pull-request/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ runs:
4949
- id: github-actions-bot-user
5050
uses: $/actions/get-github-actions-bot-user
5151

52-
- uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
52+
- uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
5353
id: create-pull-request
5454
with:
5555
token: ${{ inputs.github-token }}

‎docs/development/actions.md‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ Use Node.js 24 or later for the packages below. Keep implementation and test
44
instructions in this guide; action descriptions and generated readmes describe
55
how to use the actions.
66

7+
## Updating npm dependencies
8+
9+
From an interactive terminal at the repository root, run:
10+
11+
```bash
12+
make npm-update
13+
```
14+
15+
The target uses [npm-check-updates](https://github.com/raineorshine/npm-check-updates)
16+
to select dependency upgrades for each package under `actions/`, excluding
17+
`node_modules/` and `dist/`. It downloads the tool through npm when needed, without
18+
adding it to the action dependencies. Accept the install prompt after selecting
19+
upgrades to update installed dependencies and `package-lock.json`. Review the
20+
changes, run `make test`, and rebuild affected distributions as described below.
21+
722
## CI report parser
823

924
The parser lives in `actions/quality/parse-ci-reports`. Its `src/models/` define
@@ -35,8 +50,8 @@ the lockfile. Repository package commands also skip distribution metadata.
3550
To add a report format:
3651

3752
1. Extend `BaseParser` with `canParse()`, `parse()`, `getCategory()` and
38-
`getAutoPatterns()`. Override `getPriority()` when format detection needs to run
39-
before a more general parser.
53+
`getAutoPatterns()`. Override `getPriority()` when format detection needs to
54+
run before a more general parser.
4055
2. Register the parser in `ParserFactory`.
4156
3. Add parsing and source/distribution parity tests, then rebuild the distribution.
4257
4. Update the action's `action.yml` description or leading documentation comments

0 commit comments

Comments
 (0)