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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-create-a-javascript-action-creating-github-docs-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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.text | The 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
