Overview
The @actions-sdk/action-utils
is a collection of utility functions that can be used to simplify the development of GitHub Actions.
NOTE
If you are using actions-kit
, you don't need to install this package yourself. The utility functions are already included in the actions-kit
package.
Installation
bash
pnpm add @actions-sdk/action-utils
bash
yarn add -D @actions-sdk/action-utils
bash
npm install -D @actions-sdk/action-utils
bash
bun install -D @actions-sdk/action-utils
If you are using Actions Kit, you can import the utility functions directly from the package:
ts
// for all utility functions
import * as aku from "actions-kit/utils";
Otherwise, you can import the functions directly from the package:
ts
import { isPr } from "@actions-sdk/action-utils";
There are exports available for each entry in the sidebar, which you can use to import the utility functions directly from the package.