Skip to content

Set up your GitHub Actions workflow with a specific version of wpm

License

Notifications You must be signed in to change notification settings

trywpm/setup-wpm

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

3 Commits
 
 
 
 
 
 

Repository files navigation

setup-wpm

Download, install, and set up wpm in GitHub Actions.

Usage

- uses: trywpm/setup-wpm@v1

By default, if no version is specified, the action installs the latest version of wpm.

You can also explicitly specify a version:

- uses: trywpm/setup-wpm@v1
  with:
    wpm-version: v0.1.6

Setup wpm with caching

While wpm installs are fast, you should consider caching the directory to speed up builds, reduce load on the registry, and avoid re-downloading unchanged packages.

You can achieve this by using the actions/cache action:

- uses: actions/cache@v4
  with:
    path: ~/.wpm/cache
    key: ${{ runner.os }}-wpm-${{ hashFiles('**/wpm.lock') }}
    restore-keys: |
      ${{ runner.os }}-wpm-

- uses: trywpm/setup-wpm@v1

About

Set up your GitHub Actions workflow with a specific version of wpm

Resources

License

Stars

Watchers

Forks