Need help with failed job using pnpm + Github Actions #3751
-
|
First time using pnpm after cloning and creating a private design system repo. I'm looking to setup Actions in Github and am encountering this error: How do I add pnpm to my $PATH within my release.yml file? File looks like this: |
Beta Was this translation helpful? Give feedback.
Answered by
frencojobs
Feb 11, 2023
Replies: 1 comment 1 reply
-
|
You're setting up PNPM in a different job, different jobs run on different machines. Move jobs:
- install:
- runs-on: ubuntu-latest
- steps:
- - uses: pnpm/action-setup@v2
- with:
- version: 6.0.2
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
+ - name: Setup PNPM
+ uses: pnpm/action-setup@v2
+ with:
+ version: 6.0.2 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
coreybruyere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're setting up PNPM in a different job, different jobs run on different machines. Move
pnpm/action-setup@v2to your release job and you're good to go.