Skip to content

mansona/npm-lockfile-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Lockfile Version Check

This action checks that your package-lock.json has the correct version. This prevents people from committing the wrong version of a package-lock.json file now that the version has changed between npm@6 and npm@7

Configuration options

  • version (optional)
    • defaults to 2 (for npm@7)

Usage

To use this action, simply add a step to your workflow, like so:

- uses: mansona/npm-lockfile-version@v1

Make sure that you add this after your actions/checkout action.

on: push
jobs:
  test-app:
    name: Test app
    steps:
      - name: Check out a copy of the repo
        uses: actions/checkout@v2

      - uses: mansona/npm-lockfile-version@v1

      - name: Test
        run: npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published