Skip to content

Support pnpm in template actions #2802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Shion1305 opened this issue Mar 16, 2025 · 0 comments
Open

Support pnpm in template actions #2802

Shion1305 opened this issue Mar 16, 2025 · 0 comments

Comments

@Shion1305
Copy link

Summary

Template implementations do not support using pnpm as the package manager. We need support for pnpm.

Details

This repository contains steps for detecting the package manager and configuring the tool based on its package manager environment.

      - name: Detect package manager
        id: detect-package-manager
        run: |
          if [ -f "${{ github.workspace }}/yarn.lock" ]; then
            echo "manager=yarn" >> $GITHUB_OUTPUT
            echo "command=install" >> $GITHUB_OUTPUT
            echo "runner=yarn" >> $GITHUB_OUTPUT
            exit 0
          elif [ -f "${{ github.workspace }}/package.json" ]; then
            echo "manager=npm" >> $GITHUB_OUTPUT
            echo "command=ci" >> $GITHUB_OUTPUT
            echo "runner=npx --no-install" >> $GITHUB_OUTPUT
            exit 0
          else
            echo "Unable to determine package manager"
            exit 1
          fi

One of the most modern node package managers, pnpm, is very popular among many repositories. There are potential demands for integrating pnpm in GitHub Actions. We should add support for pnpm so that projects with pnpm can easily introduce actions using templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Shion1305 and others