4.0.0 • Published 5 months ago

@ng-easy/npm-setup v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@ng-easy/npm-setup

CI npm latest version Downloads semantic-release renovate

Opinionated zero-config GitHub Action to automate the installation of npm dependencies for Angular projects and Nx workspaces.

It is heavily inspired of npm-install GitHub action, and it might be used for other Node projects as well, as long as these requirements are met:

  • Use npm as dependency manager, others not supported
  • Have a package-lock.json and run npm ci for installation
  • Just use a root node_modules

The approach taken for caching is:

  • Try to restore node_modules if there is an exact match for package-lock.json
  • If not, restore ~/.npm based on package-lock.json and package.json, and use rolling cache to avoid cache snowball
  • Detects if Cypress is a dependency, if so caches its installation
  • Detects if Angular is a dependency, if so caches its build artifacts
  • Caches Nx local execution cache instead of relying on Nx Cloud if an input is provided, using rolling cache as well

Usage

name: main
on: [push]

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    name: Build and test
    steps:
      - uses: actions/checkout@v2
      - uses: ng-easy/npm-install@v2
      - run: npm run build

If you want to cache Nx local execution cache then pass nx-key input:

- uses: ng-easy/npm-install@v2
  with:
    nx-key: build # or any other key you want to use for the cache that uniquely identifies the job in the workflow
4.0.0

5 months ago

2.0.15

1 year ago

2.0.16

1 year ago

3.0.0

1 year ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.8.6

2 years ago

1.8.5

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.5

2 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.0

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.2.1

3 years ago

1.0.0

3 years ago