Setup pnpm in GitHub Actions
masterUse pnpm/action-setup to install the pnpm package manager in your GitHub Actions workflows.
Important Note: This action does not set up Node.js. You should use actions/setup-node separately to ensure a Node.js environment is available before running this action.
If you are upgrading from v2, please upgrade to the latest version (v6+) as v2 is incompatible with newer Node.js versions.
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v6
with:
version: 10