Skip to content

depjs/setup-depjs

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

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

setup-depjs

Set up dep — a little Node.js dependency installer for module end-users — in your GitHub Actions workflow.

The action installs dep globally and adds it to PATH, so every later step can run dep install, dep lock, and dep run.

Usage

steps:
  - uses: actions/checkout@v4
  - uses: actions/setup-node@v4
    with:
      node-version: 22
  - uses: depjs/setup-depjs@v1
  - run: dep install
  - run: dep run test

dep requires Node.js >=20.19.0, so run actions/setup-node first (or rely on the runner's default Node.js if it is new enough).

Pinning a version

  - uses: depjs/setup-depjs@v1
    with:
      dep-version: 1.5.2

dep-version accepts anything npm install does: an exact version (1.5.2), a semver range (^1.5.0), or a dist-tag (latest).

Inputs

Name Description Default
dep-version Version of dep to install (version, range, tag) latest

Outputs

Name Description
dep-version The version of dep that was installed
  - uses: depjs/setup-depjs@v1
    id: setup-dep
  - run: echo "Installed dep ${{ steps.setup-dep.outputs.dep-version }}"

Supported runners

Linux, macOS, and Windows runners are all supported.

License

MIT

About

GitHub Action for depjs

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors