Skip to content
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

Support pnpm 8 #77

Open
claughinghouse opened this issue Mar 28, 2023 · 3 comments
Open

Support pnpm 8 #77

claughinghouse opened this issue Mar 28, 2023 · 3 comments

Comments

@claughinghouse
Copy link

With the release of pnpm 8 it would be awesome to have support for it in actions.

@thantos
Copy link

thantos commented Mar 28, 2023

I was able to use 8 with lockfile v6 in actions.

    - uses: pnpm/[email protected]
      with:
        version: 8

on GHA

Run pnpm/[email protected]
  with:
    version: 8
    dest: ~/setup-pnpm
    run_install: null

@tksst
Copy link
Contributor

tksst commented Mar 29, 2023

I specified a pnpm version in package.json

  "packageManager": "[email protected]",

and it works fine with pnpm/action-setup.

Note that [email protected] + Node.js 14 does not work fine but this is another issue:
#18
#31

@fz6m
Copy link

fz6m commented Apr 1, 2023

my workaround with using node 14.x and pnpm 8 :

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        node-version: [14.x, 16.x, 18.x]
        os: [ubuntu-latest, windows-latest]
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Install pnpm
        if: ${{ matrix.node-version != '14.x' }}
        uses: pnpm/[email protected]

      - name: Install pnpm (node 14)
        if: ${{ matrix.node-version == '14.x' }}
        run: npm install -g @pnpm/[email protected]

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'pnpm'

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

4 participants