Skip to content

Choose a tag to compare

@github-actions github-actions released this 14 Sep 23:41
· 1 commit to main since this release

πŸŽ‰ First Marketplace Release!

GitHub Script TypeScript Wrapper lets you write GitHub Actions workflows in TypeScript with full dependency bundling support.

✨ Key Features

  • πŸ”§ TypeScript Support - Write workflow logic in TypeScript with full type safety
  • πŸ“¦ Dependency Bundling - Bundle npm packages (like axios, github-typescript-utils) with esbuild
  • ⚑ Fast & Cached - esbuild compilation with intelligent caching
  • 🎯 Node.js Targeting - Choose your Node.js version for bundling (20, 22, etc.)
  • πŸ”„ Full github-script Compatibility - All github-script inputs supported

πŸš€ Quick Start

1. Create a TypeScript script:

// .github/scripts/my-script.ts
export default async function run({ core, github, context, args }) {
  core.info(`Hello from TypeScript! Repo: ${context.repo.repo}`);
  return { success: true, message: args.message };
}

2. Use in your workflow:

- uses: tkstang/[email protected]
  with:
    ts-file: .github/scripts/my-script.ts
    node-version: "22"
    args: |
      {
        "message": "Hello World!"
      }

πŸ“š Documentation