You've already forked setup-node
mirror of
https://github.com/actions/setup-node.git
synced 2025-07-01 04:33:13 +07:00
Compare commits
3 Commits
ethomson/u
...
ethomson/u
Author | SHA1 | Date | |
---|---|---|---|
3fa75190be | |||
6ecfd2dcb2 | |||
f499b0c1ab |
@ -4,11 +4,10 @@
|
||||
<a href="https://github.com/actions/setup-node"><img alt="GitHub Actions status" src="https://github.com/actions/setup-node/workflows/Main%20workflow/badge.svg"></a>
|
||||
</p>
|
||||
|
||||
This action sets up a node environment for use in actions, including npm and yarn. It:
|
||||
This action sets by node environment for use in actions by:
|
||||
|
||||
- sets up the specified version of node (downloading it if it's not already available)
|
||||
- adds node, npm and yarn to the PATH
|
||||
- registers problem matchers for error output
|
||||
- optionally downloading and caching a version of node - npm by version spec and add to PATH
|
||||
- registering problem matchers for error output
|
||||
|
||||
# Usage
|
||||
|
||||
@ -97,7 +96,7 @@ steps:
|
||||
- run: npm install --ignore-scripts
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
# `npm rebuild` will run all those post-install scritps for us.
|
||||
# `npm rebuild` will run all those post-install scripts for us.
|
||||
- run: npm rebuild && npm run prepare --if-present
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: 'Setup Node.js environment'
|
||||
description: 'Setup a Node.js environment and add it to the PATH, additionally providing proxy support'
|
||||
name: 'Setup Node.js'
|
||||
description: 'Set up a specific version of Node.js and add the command-line tools to the PATH'
|
||||
author: 'GitHub'
|
||||
inputs:
|
||||
always-auth:
|
||||
|
Reference in New Issue
Block a user