projen-github-action-typescript
TypeScript icon, indicating that this package has built-in type declarations

0.0.395 • Public • Published

Github Action Typescript Project

Welcome to the home of projen-github-action-typescript!

This is an external projen project type that aims to make creating GitHub Actions in TypeScript easier.

Usage

npx projen new --from projen-github-action-typescript

Features

  • projen-managed action.yml file: write your yaml metadata in .projenrc.js, where your code is type-checked and available properties are easy to find.

    const project = new GitHubActionTypeScriptProject({
      name: 'my-project',
      defaultReleaseBranch: 'main',
      actionMetadata: {
        runs: {
          using: RunsUsing.NODE_12,
          main: 'dist/index.js',
        },
        inputs: {
          myInput: {
            description: 'my first input',
          },
        },
        outputs: {
          myOutput: {
            description: 'my first output',
          },
        },
      },
    });
  • sensible defaults to JavaScript actions: JavaScript actions come pre-configured with the necessary workflow to bundle your source code into one index.js file that GitHub Actions can execute.

Future Features

  • generate an entrypoint file that receives inputs specified in action.yml.
  • generate a CLI from action.yml inputs to unlock sensible testing of the action.

Contributing

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Readme

Keywords

none

Package Sidebar

Install

npm i projen-github-action-typescript

Weekly Downloads

654

Version

0.0.395

License

Apache-2.0

Unpacked Size

262 kB

Total Files

18

Last publish

Collaborators

  • cdklabs-automation