Skip to content

Commit b6311a8

Browse files
authored
Merge pull request #170 from samnap11/update-github-actions-docs
docs: update GitHub Actions guide
2 parents 8e09b1b + 5671db7 commit b6311a8

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/continuous-integration.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,21 @@ jobs:
9999
node-version: [15]
100100
steps:
101101
- uses: actions/checkout@v2
102+
- uses: pnpm/[email protected]
103+
with:
104+
version: 6.20.3
102105
- name: Use Node.js ${{ matrix.node-version }}
103106
uses: actions/setup-node@v2
104107
with:
105108
node-version: ${{ matrix.node-version }}
106-
- name: Cache .pnpm-store
107-
uses: actions/cache@v1
108-
with:
109-
path: ~/.pnpm-store
110-
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
111-
- name: Install pnpm
112-
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
113-
- name: pnpm Build
109+
cache: 'pnpm'
110+
- name: Install dependencies
114111
run: pnpm install
115112
```
116113

117114
:::note
118115

119-
Using `actions/setup-node@v2` you need to install pnpm with [root permissions](https://github.com/actions/setup-node/issues/177), eg:`sudo npm install -g pnpm`. Alternatively, if you specify the Node.js version to use, pnpm may be installed with no priviledged user.
116+
Caching packages dependencies with `actions/setup-node@v2` requires you to install pnpm with version **6.10+**.
120117

121118
:::
122119

0 commit comments

Comments
 (0)