Notably, this gets us `@actions/github` 6.0.1, which is necessary for `github.context.runAttempt` (so I have also updated `package.json` accordingly). On that note... great job following semver, GitHub! Between this and the non-breaking major version change on `@actions/cache`, I'm starting to feel like nobody on the Actions team understands how software versioning works.
13 lines
318 B
TypeScript
13 lines
318 B
TypeScript
import type { Plugin } from "./plugin.js";
|
|
/**
|
|
* Run a plugin with Node.js.
|
|
*
|
|
* ```
|
|
* #!/usr/bin/env node
|
|
* const {runNodeJs} = require("@bufbuild/protoplugin");
|
|
* const {myPlugin} = require("./protoc-gen-x-plugin.js");
|
|
* runNodeJs(myPlugin);
|
|
* ```
|
|
*/
|
|
export declare function runNodeJs(plugin: Plugin): void;
|