Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-build-and-test-nodejs-building-testing-node-js-github-docs-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  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/build-and-test-code/nodejs