Releases: JarvusInnovations/background-action
Releases · JarvusInnovations/background-action
Release list
v2.0.0
Breaking changes
- Invalid option values now fail the step.
tail,log-output,log-output-resumeandlog-output-ifused to match on substrings, solog-output: no-stderrquietly enabled stderr and a typo likesdtoutquietly disabled logging entirely. The same applied towait-for, whereabc123silently became a 123ms timeout. These are now validated exactly. If a workflow of yours currently passes with a typo'd value, it will start failing — that value was never doing what it looked like. - Backgrounded processes are stopped during post-run. They receive
SIGTERM, getshutdown-grace(default10s) to exit cleanly, and anything they print on the way down is captured in the logs. Setshutdown: falsefor the previous behavior. - Logs are written under
RUNNER_TEMPinstead of the workspace, so an automated commit can no longer sweep them into your repository. Use the newstdout-log/stderr-logoutputs to find them. - Runs on the
node24runtime.
Fixes
waitwas passed as an argument to your last command (#210).core.getInput()strips trailing whitespace, so the shell builtin appended to your commands became an argv of whatever ran last —npm run previewbecamenpm run preview wait. Affected every multi-linerun:whose final command wasn't backgrounded.- A failed background process is now reported immediately rather than at the readiness timeout. A bare
waitblocks until every job exits and discards their statuses, so one service dying on startup was invisible until the timeout this action exists to prevent. Jobs are now awaited one at a time. - Backgrounded processes are no longer left running (#205).
- Log files no longer land in the workspace (#199), and their paths are published as outputs (#193).
log-output-if: early-exit— the spellingaction.ymlhad advertised since the first release — was rejected outright. Both spellings now work.- Post-run no longer prints the environment when debug logging is enabled.
Improvements
- New inputs:
shutdown,shutdown-grace. New outputs:stdout-log,stderr-log. - Durations accept terse and verbose spellings (
30s,30 seconds,1h30m45s). - Production dependencies reduced to three, with no known advisories.
- The published bundle is now committed and verified against its sources on every pull request.
- Tests run on macOS as well as Linux.
See the README for the full upgrade notes.
Thanks
This release is almost entirely other people's bug reports. Several sat open for a long time.
- @OlegYch reported #210, and pointed at the exact line in
index.js. That's most of the diagnosis. - @rdicroce reported #199 after log files were accidentally committed to a repository by an automated release workflow.
- @piranna reported #205, correctly noting nothing ever killed the backgrounded processes.
- @vera reported #187, the post-job
ENOENTfailure. Now covered by a regression test. - @JordanLongstaff reported #206 (Node 20 deprecation), and @marcodicro-dp for following up on it.
- @riderx (#207), @runlevel5 (#208, #209) and @Lucas127128 (#211) all sent Node 24 upgrades. #207 was the closest to complete, and #209's ESM work remains valuable and is still on the table.
Sorry it took a while.
v1.0.7
v1.0.6
What's Changed
- Chore: Add manually dispatched workflow to test latest published version by @jmealo in #183
- Keep GitHub Actions up to date with GitHub's Dependabot by @cclauss in #188
- chore(deps-dev): bump eslint from 8.56.0 to 8.57.0 by @dependabot in #186
- chore(deps): bump follow-redirects from 1.15.4 to 1.15.6 by @dependabot in #189
- chore(deps): bump the github-actions group with 2 updates by @dependabot in #190
- Fix #187: Post-run should exit cleanly when log files are missing by @jmealo in #192
- README.md: uses: actions/checkout@v4 by @cclauss in #191
New Contributors
Full Changelog: v1.0.5...v1.0.6
v1.0.5
v1.0.1
What's Changed
- chore(deps): bump node-notifier from 8.0.0 to 8.0.1 by @dependabot in #29
- chore(deps): bump y18n from 4.0.0 to 4.0.1 by @dependabot in #41
- chore(deps): bump lodash from 4.17.19 to 4.17.21 by @dependabot in #47
- chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 by @dependabot in #48
- chore(deps): bump ws from 7.3.1 to 7.4.6 by @dependabot in #51
- chore(deps): bump glob-parent from 5.1.1 to 5.1.2 by @dependabot in #55
- chore(deps): bump path-parse from 1.0.6 to 1.0.7 by @dependabot in #64
- chore(deps): bump minimist from 1.2.5 to 1.2.6 by @dependabot in #101
- chore(deps): bump ansi-regex from 4.1.0 to 4.1.1 by @dependabot in #111
- chore(deps): bump jsdom from 16.4.0 to 16.7.0 by @dependabot in #116
- chore(deps): bump tmpl from 1.0.4 to 1.0.5 by @dependabot in #69
- chore(deps): bump wait-on from 5.2.0 to 6.0.1 by @dependabot in #97
- chore(deps-dev): bump jest from 26.5.2 to 28.1.3 by @dependabot in #119
- Fix readme example and clarify comments by @Ross-ForAllSecure in #145
- Bump node version and fix deprecation warnings by @rmichalak in #164
New Contributors
- @Ross-ForAllSecure made their first contribution in #145
- @rmichalak made their first contribution in #164
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Initial versioned release
What's Changed
- feat: use hologit to project distribution branch by @themightychris in #1
- Feat: remove name input, use step-level name by @jmealo in #4
New Contributors
- @themightychris made their first contribution in #1
- @jmealo made their first contribution in #4
Full Changelog: https://github.com/JarvusInnovations/background-action/commits/v1.0.0