Meta tags:
description= Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH;
Headings (most frequently used words):
setup, node, js, environment, usage, caching, global, packages, data, matrix, testing, using, on, ghes, advanced, license, contributions, code, of, conduct, product, platform, support, company, github, action, supported, version, syntax, checking, in, lockfiles, verified, creator, stars, contributors, categories, links, installation,
Text of the page (most frequently used words):
node (51), the (49), actions (31), #github (29), and (25), version (25), for (21), setup (20), npm (19), cache (16), versions (14), #action (13), latest (12), uses (12), with (11), caching (10), from (10), run (9), will (9), are (8), using (8), more (7), lts (7), environment (7), this (6), see (6), code (6), packages (6), yarn (6), input (6), downloading (6), path (6), you (5), that (5), support (5), not (5), rate (5), limit (5), dependency (5), search (5), add (5), jump (5), all (5), your (4), about (4), requests (4), check (4), usage (4), com (4), token (4), error (4), test (4), matrix (4), checkout (4), steps (4), package (4), dependencies (4), pnpm (4), always (4), can (3), 2022 (3), project (3), security (3), open (3), issues (3), verified (3), guide (3), documentation (3), gpr (3), data (3), file (3), advanced (3), runner (3), access (3), information (3), ghes (3), when (3), directly (3), name (3), lock (3), json (3), examples (3), cached (3), dist (3), current (3), output (3), optionally (3), adding (3), fix (3), update (3), marketplace (3), sign (3), signed (2), out (2), another (2), tab (2), window (2), refresh (2), session (2), reload (2), time (2), site (2), blog (2), skills (2), community (2), api (2), resources (2), pricing (2), readme (2), customer (2), stories (2), enterprise (2), features (2), product (2), pull (2), learn (2), has (2), conduct (2), contributions (2), under (2), license (2), publishing (2), npmjs (2), multiple (2), architectures (2), different (2), any (2), nodejs (2), requested (2), during (2), workflow (2), tool (2), hosted (2), runners (2), get (2), appliance (2), distributions (2), outside (2), made (2), then (2), like (2), download (2), but (2), better (2), per (2), note (2), use (2), used (2), functionality (2), global (2), supported (2), optional (2), recommended (2), lockfiles (2), locally (2), syntax (2), specific (2), find (2), yml (2), problem (2), matchers (2), following (2), aliases (2), source (2), manage (2), web (2), perform, what, git, map, updated, privacy, terms, inc, organization, tiktok, twitch, youtube, linkedin, facebook, twitter, shop, social, impact, inclusion, press, careers, company, contact, status, professional, services, forum, docs, desktop, electron, partners, developer, platform, roadmap, team, report, abuse, links, utilities, categories, contributors, star, stars, was, created, creator, nice, our, welcome, contributor, scripts, released, mit, private, operating, systems, nigthly, able, must, come, setting, self, without, internet, secrets, gh_dotcom_token, higher, pass, generate, personal, comes, pre, installed, enabled, dynamically, downloads, these, calls, via, unauthenticated, which, limited, within, frame, start, errors, looks, after, try, official, also, have, put, exceeded, hour, sample, strategy, ubuntu, runs, build, jobs, testing, subdir, monorepos, does, node_modules, defaults, repository, root, its, hash, part, key, cases, files, they, located, subdirectories, shrinkwrap, built, restoring, hood, requires, less, configuration, settings, managers, turned, off, default, commit, lockfile, manager, performance, reasons, consult, working, section, checking, resolve, downloaded, possible, since, there, possibility, hitting, other, values, depending, release, nvm, fermium, erbium, major, supports, semantic, versioning, specification, detailed, please, refer, regarding, images, first, local, semver, match, unable, attempt, miss, failure, fall, back, previous, behavior, releases, supplied, however, specify, don, rely, system, one, basic, configuring, authentication, registering, distribution, provides, users, logic, handling, warning, uncaught, exception, asdf, format, engines, volta, core, print, choose, copy, paste, snippet, into, installation, message, suggested, results, collections, trending, topics, repositories, articles, fund, developers, sponsors, case, studies, devsecops, devops, automation, solution, education, startups, teams, solutions, explore, collaborate, discussions, plan, track, work, changes, review, write, copilot, instant, dev, environments, codespaces, vulnerabilities, host, automate, toggle, navigation, skip, content, wayback, machine, http, archive, org, 20221205070327, https, timestamps, capture, fail, success, 2023, 2021, jan, dec, nov,
Text of the page (random words):
setup node js environment actions github marketplace github nov dec jan 05 2021 2022 2023 success fail about this capture timestamps the wayback machine http web archive org web 20221205070327 https github com marketplace actions setup node js environment skip to content toggle navigation sign up product actions automate any workflow packages host and manage packages security find and fix vulnerabilities codespaces instant dev environments copilot write better code with ai code review manage code changes issues plan and track work discussions collaborate outside of code explore all features documentation github skills blog solutions for enterprise teams startups education by solution ci cd automation devops devsecops case studies customer stories resources open source github sponsors fund open source developers the readme project github community articles repositories topics trending collections pricing search all github jump to no suggested jump to results search all github jump to search all github jump to search all github jump to sign in sign up message marketplace actions setup node js environment actions github action setup node js environment v3 5 1 latest version use latest version actions setup node js environment setup a node js environment by adding problem matchers and optionally downloading and adding it to the path installation copy and paste the following snippet into your yml file name setup node js environment uses actions setup node v3 5 1 learn more about this action in actions setup node choose a version v3 5 1 update actions core and print node npm yarn versions v3 5 0 add support for engines node and volta v3 4 1 fix pnpm output and node version output issues v3 4 0 add support for asdf format and update actions cache version to 3 0 0 v3 3 0 add support for lts n aliases v3 2 0 add current node latest aliases v3 1 1 update actions cache version to 2 0 2 v3 1 0 add caching support on ghes 3 5 v3 0 0 v3 0 0 v2 5 1 fix logic of error handling for npm warning and uncaught exception setup node this action provides the following functionality for github actions users optionally downloading and caching distribution of the requested node js version and adding it to the path optionally caching npm yarn pnpm dependencies registering problem matchers for error output configuring authentication for gpr or npm usage see action yml basic steps uses actions checkout v3 uses actions setup node v3 with node version 16 run npm ci run npm test the node version input is optional if not supplied the node version from path will be used however it is recommended to always specify node js version and don t rely on the system one the action will first check the local cache for a semver match if unable to find a specific version in the cache the action will attempt to download a version of node js it will pull lts versions from node versions releases and on miss or failure will fall back to the previous behavior of downloading directly from node dist for information regarding locally cached versions of node js on github hosted runners check out github actions runner images supported version syntax the node version input supports the semantic versioning specification for more detailed examples please refer to the documentation examples major versions 14 16 18 more specific versions 10 15 16 15 1 18 4 0 nvm lts syntax lts erbium lts fermium lts lts n latest release or latest current node note like the other values will get the latest locally cached node js version or the latest version from actions node versions depending on the check latest input current latest node always resolve to the latest dist version that version is then downloaded from actions node versions if possible or directly from node js if not since it will not be cached always there is possibility of hitting rate limit when downloading from dist checking in lockfiles it s always recommended to commit the lockfile of your package manager for security and performance reasons for more information consult the working with lockfiles section of the advanced usage guide caching global packages data the action has a built in functionality for caching and restoring dependencies it uses actions cache under the hood for caching global packages data but requires less configuration settings supported package managers are npm yarn pnpm v6 10 the cache input is optional and caching is turned off by default the action defaults to search for the dependency file package lock json npm shrinkwrap json or yarn lock in the repository root and uses its hash as a part of the cache key use cache dependency path for cases when multiple dependency files are used or they are located in different subdirectories note the action does not cache node_modules see the examples of using cache for yarn pnpm and cache dependency path input in the advanced usage guide caching npm dependencies steps uses actions checkout v3 uses actions setup node v3 with node version 16 cache npm run npm ci run npm test caching npm dependencies in monorepos steps uses actions checkout v3 uses actions setup node v3 with node version 16 cache npm cache dependency path subdir package lock json run npm ci run npm test matrix testing jobs build runs on ubuntu latest strategy matrix node 14 16 18 name node matrix node sample steps uses actions checkout v3 name setup node uses actions setup node v3 with node version matrix node run npm ci run npm test using setup node on ghes setup node comes pre installed on the appliance with ghes if actions is enabled when dynamically downloading nodejs distributions setup node downloads distributions from actions node versions on github com outside of the appliance these calls to actions node versions are made via unauthenticated requests which are limited to 60 requests per hour per ip if more requests are made within the time frame then you will start to see rate limit errors during downloading that looks like error api rate limit exceeded for after that error the action will try to download versions directly from the official site but it also can have rate limit so it s better to put token to get a higher rate limit you can generate a personal access token on github com and pass it as the token input for the action uses actions setup node v3 with token secrets gh_dotcom_token node version 16 if the runner is not able to access github com any nodejs versions requested during a workflow run must come from the runner s tool cache see setting up the tool cache on self hosted runners without internet access for more information advanced usage check latest version using a node version file using different architectures using nigthly versions using rc versions caching packages data using multiple operating systems and architectures publishing to npmjs and gpr with npm publishing to npmjs and gpr with yarn using private packages license the scripts and documentation in this project are released under the mit license contributions contributions are welcome see contributor s guide code of conduct be nice see our code of conduct verified creator github has verified that this action was created by actions learn more about verified actions stars star 2 6k contributors categories utilities links actions setup node open issues 30 pull requests 14 report abuse product features security team enterprise customer stories the readme project pricing resources roadmap platform developer api partners electron github desktop support docs community forum professional services skills status contact github company about blog careers press inclusion social impact shop github on twitter github on facebook github on linkedin github on youtube github on twitch github on tiktok github s organization on github 2022 github inc terms privacy updated 08 2022 site map what is git you can t perform that action at this time you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session
|