github · GitHub Actions Docs
Actions Building and testing Node.js - GitHub Docs
A tutorial for setting up a GitHub Actions workflow to automate the building and testing of a Node.js application.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Building and testing Node.js - GitHub Docs
A tutorial for setting up a GitHub Actions workflow to automate the building and testing of a Node.js application.
When To Use
Use when you need to configure a GitHub Actions workflow to automatically install dependencies, build, and run tests for a Node.js project.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-build-and-test-nodejs-building-testing-node-js-github-docs-workflow-guide.md | A GitHub Actions workflow YAML template for building and testing a Node.js project. | Questions about a GitHub Actions workflow YAML template for building and testing a Node.js project. |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu.text | A GitHub Actions workflow configuration file demonstrating how to build and test Node.js applications using a matrix strategy for multiple Node.js versions. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration file demonstrating how to build and test Node.js applications using a matrix... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-2.text | A GitHub Actions workflow configuration demonstrating a matrix strategy to build and test across multiple Node.js versions. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration demonstrating a matrix strategy to build and test across multiple Node.js ver... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-3.text | A YAML workflow configuration for building and testing a Node.js application using GitHub Actions with npm commands. | Exact payloads, commands, or snippets shown in A YAML workflow configuration for building and testing a Node.js application using GitHub Actions with npm commands. |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-4.text | A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies with npm ci, and run tests. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies with npm ci, a... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-5.text | A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies, and run tests. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies, and run tests. |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-6.text | A YAML workflow configuration demonstrating how to set up Node.js, install dependencies with yarn, and run tests within a GitHub Actions runner. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to set up Node.js, install dependencies with yarn, and run tests with... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-7.text | A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies with yarn, and run tests. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies with yarn, and... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-8.text | A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies using npm ci, and configure registry authentication. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to set up Node.js, install dependencies using npm ci,... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-9.text | A configuration snippet demonstrating how to use a NODE_AUTH_TOKEN for authenticating with the npm registry within a GitHub Actions workflow. | Exact payloads, commands, or snippets shown in A configuration snippet demonstrating how to use a NODEAUTHTOKEN for authenticating with the npm registry within a Gi... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-10.text | A GitHub Actions workflow configuration file demonstrating how to set up Node.js, install dependencies, and run tests. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration file demonstrating how to set up Node.js, install dependencies, and run tests. |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-11.text | A GitHub Actions workflow configuration file demonstrating how to set up Node.js, install dependencies with yarn, and run tests. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration file demonstrating how to set up Node.js, install dependencies with yarn, and... |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-12.text | A GitHub Actions workflow YAML configuration demonstrating how to build and test a Node.js project using pnpm. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML configuration demonstrating how to build and test a Node.js project using pnpm. |
examples/actions-build-and-test-nodejs-building-testing-node-js-github-docs-githu-13.text | A YAML workflow configuration for building and testing a Node.js application using GitHub Actions. | Exact payloads, commands, or snippets shown in A YAML workflow configuration for building and testing a Node.js application using GitHub Actions. |
What This Skill Covers
-
- GitHub Actions / - Tutorials / - Build and test code / - Node.js
- Main sections:
In this article,Introduction,Prerequisites,Using a Node.js workflow template,Specifying the Node.js version.
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/build-and-test-code/nodejs
