Skip to content

Commit

Permalink
chore: use corepack to install pnpm (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Jul 29, 2022
1 parent 973ac86 commit 294af52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ title: Contributing

Fork [this repository][repo], clone your fork and add this repository as the upstream remote.

You will need to have [`pnpm`](https://pnpm.js.org) installed so make sure you follow the installation [instructions](https://pnpm.js.org/en/installation). At the time of writing the advised way to install is via `npm i -g pnpm`.
You will need to have [`corepack`](https://github.com/nodejs/corepack) enabled so that you can use [`pnpm`](https://pnpm.js.org).

```bash
git clone <<FORKED_REPO_URL>>
cd remirror
git remote add upstream https://github.com/remirror/remirror
corepack enable
pnpm --version
pnpm install
# Checkout a branch and start working on it
Expand Down
10 changes: 5 additions & 5 deletions support/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ inputs:
description: 'The location of the pnpm cache'
required: true
default: '.pnpm-store'
version: # id of input
description: 'The version to use'
required: false
default: 6.14.5

runs:
using: 'composite'
steps:
- name: enable corepack
run: corepack enable
shell: bash

- name: install pnpm
run: npm i -g pnpm@${{ inputs.version }}
run: pnpm --version
shell: bash

- name: setup pnpm config
Expand Down

1 comment on commit 294af52

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.