Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Installs the latest Angular CLI on Node 22 with npm caching. Zero config.
| `node-version` | `22` | Node.js version — e.g. `22`, `20`, `18` |
| `package-manager` | `npm` | `npm`, `yarn`, or `pnpm` |
| `cache-dependency-path` | _(repo root)_ | Lock file path for monorepos |
| `cache` | `true` | Set to `false` to disable package manager caching |

## Outputs

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
description: 'Path to the lock file for caching (e.g. packages/app/package-lock.json). Defaults to repo root.'
required: false
default: ''
cache:
description: 'Enable package manager caching. Set to false to disable (e.g. if no lock file exists).'
required: false
default: 'true'

outputs:
cli-version:
Expand All @@ -41,7 +45,7 @@ runs:
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: ${{ inputs.package-manager }}
cache: ${{ inputs.cache == 'true' && inputs.package-manager || '' }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}

- name: Install Angular CLI (npm)
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "angular-setup",
"version": "2.0.0",
"description": "GitHub Action: setup Node.js, cache npm/yarn/pnpm, and install Angular CLI",
"private": true,
"author": "Mayur Rawte <rawte.mayur@gmail.com>",
"license": "MIT"
}
Loading