Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
arrow-down-circle

GitHub Action

Setup node and pnpm

v1.1.1

Setup node and pnpm

arrow-down-circle

Setup node and pnpm

Setup node, pnpm and the caching

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup node and pnpm

uses: Dafnik/[email protected]

Learn more about this action in Dafnik/setup-node-pnpm

Choose a version

setup-node-pnpm

A composite Action for setting up Node and PNPM.

Usage

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout your repository using git
        uses: actions/checkout@v3

      - name: setup node and pnpm
        uses: dafnik/setup-node-pnpm@v1
        # with:
          # pnpm: 8
          # node: 18
          # install: false
          # install-ignore-scripts: false

Furthermore see action.yml

Testing

Local testing is done with act

Run the test workflow:

act -j test

Release instructions

In order to release a new version of this action:

  1. Locate the semantic version of the upcoming release (a draft is maintained by the draft-release workflow).

  2. Publish the draft release from the main branch with semantic version as the tag name, with the checkbox to publish to the GitHub Marketplace checked. ☑️

  3. After publishing the release, the release workflow will automatically run to create/update the corresponding the major version tag such as v0.

    ⚠️ Environment approval is required. Check the Release workflow run list.

License

The scripts and documentation in this project are released under the MIT License.