Prompt Buddy logoPrompt Buddy

github · GitHub Actions Docs

Create Actions Creating a JavaScript action - GitHub Docs

Teaches how to develop, bundle with Rollup, and publish a custom GitHub Action using JavaScript and Node.js dependencies.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Create Actions Creating a JavaScript action - GitHub Docs

Teaches how to develop, bundle with Rollup, and publish a custom GitHub Action using JavaScript and Node.js dependencies.

When To Use

Use when you need to build a custom GitHub Action using JavaScript that requires bundling dependencies into a single distribution file for execution on GitHub runners.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-create-a-javascript-action-creating-github-docs-workflow-guide.mdA tutorial guide for building a custom JavaScript action for GitHub Actions.Questions about a tutorial guide for building a custom JavaScript action for GitHub Actions.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j.textA step-by-step tutorial guide for creating a custom JavaScript action for GitHub Actions.Exact payloads, commands, or snippets shown in A step-by-step tutorial guide for creating a custom JavaScript action for GitHub Actions.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-2.textA text file demonstrating the initial npm configuration command used to set up a new JavaScript GitHub Action project.Exact payloads, commands, or snippets shown in A text file demonstrating the initial npm configuration command used to set up a new JavaScript GitHub Action project.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-3.textA YAML workflow configuration file demonstrating how to trigger a custom JavaScript action with inputs and outputs.Exact payloads, commands, or snippets shown in A YAML workflow configuration file demonstrating how to trigger a custom JavaScript action with inputs and outputs.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-4.textThe npm installation command required to add the @actions/core and @actions/github packages for developing a JavaScript action.Exact payloads, commands, or snippets shown in The npm installation command required to add the @actions/core and @actions/github packages for developing a JavaScri...
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-5.textA JavaScript code example demonstrating how to use the @actions/core library to retrieve inputs and set outputs within a GitHub Action.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the @actions/core library to retrieve inputs and set outputs withi...
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-6.textA text representation of a hello-world JavaScript GitHub Action including its metadata, inputs, and outputs.Exact payloads, commands, or snippets shown in A text representation of a hello-world JavaScript GitHub Action including its metadata, inputs, and outputs.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-7.textA Rollup configuration object for bundling a JavaScript GitHub Action using commonjs and node-resolve plugins.Exact payloads, commands, or snippets shown in A Rollup configuration object for bundling a JavaScript GitHub Action using commonjs and node-resolve plugins.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-8.textA sequence of git commands used to stage, commit, tag, and push the initial files for a new JavaScript GitHub Action.Exact payloads, commands, or snippets shown in A sequence of git commands used to stage, commit, tag, and push the initial files for a new JavaScript GitHub Action.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-9.textA directory tree structure illustrating the required files and folders for a custom JavaScript GitHub Action.Exact payloads, commands, or snippets shown in A directory tree structure illustrating the required files and folders for a custom JavaScript GitHub Action.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-10.textA YAML workflow configuration demonstrating how to call a custom JavaScript action within a GitHub Actions job.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to call a custom JavaScript action within a GitHub Actions job.
examples/actions-create-a-javascript-action-creating-github-docs-github-actions-j-11.textA YAML workflow configuration demonstrating how to trigger and run a local JavaScript action within a GitHub Actions runner.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to trigger and run a local JavaScript action within a GitHub Actions...

What This Skill Covers

    • GitHub Actions / - Tutorials / - Create actions / - Create a JavaScript action
  • Main sections: In this article, Introduction, Prerequisites, Creating an action metadata file, Adding actions toolkit packages.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://docs.github.com/en/actions/tutorials/create-actions/create-a-javascript-action