@action-class/action-yml
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@action-class/action-yml

Typed representation of the action.yml structure. See Metadata syntax for GitHub Actions for more information about the action.yml structure.

Usage

Install the package

npm install @action-class/action-yml

Import the ActionYml type

import type { ActionYml } from '@action-class/action-yml';

Examples

Read an action.yml file

This example reads an action.yml file and parses it into a ActionYml object using the js-yaml package.

import * as fs from 'fs/promises';
import * as yaml from 'js-yaml';
import type { ActionYml } from '@action-class/action-yml';

const actionYml = yaml.load(await fs.readFile('action.yml', 'utf8')) as ActionYml;

License

This library is published under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @action-class/action-yml

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

6.22 kB

Total Files

6

Last publish

Collaborators

  • jan-guenter