Skip to content

Commit 34b9acb

Browse files
authored
Use pnpm (#867)
1 parent a026a76 commit 34b9acb

File tree

4 files changed

+2335
-6657
lines changed

4 files changed

+2335
-6657
lines changed

.github/workflows/pull_request.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
- uses: actions/cache@v2
11+
with:
12+
path: ~/.pnpm-store
13+
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
14+
restore-keys: ${{ runner.os }}-
15+
- uses: pnpm/action-setup@v2
16+
with:
17+
version: 6
1018
- uses: actions/setup-node@v2
11-
- run: npm ci
19+
- run: pnpm i
1220
- run: npm run lint
1321
test:
1422
strategy:
@@ -18,8 +26,16 @@ jobs:
1826
runs-on: ${{ matrix.os }}
1927
steps:
2028
- uses: actions/checkout@v2
29+
- uses: actions/cache@v2
30+
with:
31+
path: ~/.pnpm-store
32+
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: ${{ runner.os }}-
34+
- uses: pnpm/action-setup@v2
35+
with:
36+
version: 6
2137
- uses: actions/setup-node@v2
2238
with:
2339
node-version: ${{ matrix.node-version }}
24-
- run: npm ci
40+
- run: pnpm i
2541
- run: npm run test:coverage

CONTRIBUTING.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ Project on GitHub][egghead]
77

88
## Project setup
99

10-
1. Fork and clone the repo
11-
2. Run `npm install` to install dependencies
12-
3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
10+
1. Install [pnpm](https://pnpm.io/)
11+
2. Fork and clone the repo
12+
3. Run `pnpm i` to install dependencies
13+
4. Create a branch for your PR with `git checkout -b pr/your-branch-name`
1314

1415
It’s also recommended you have [ESLint][eslint] installed and set up correctly. You may also run the command
1516
`npm run lint` to see lint errors.
@@ -71,16 +72,6 @@ Issue**][good-first-issue] are especially good to help with.
7172
7273
Also, please watch the repo and respond to questions/bug reports/feature requests! Thanks!
7374
74-
## Deploying (access only)
75-
76-
If you have access to the npm project, run the following:
77-
78-
```bash
79-
npm run deploy
80-
```
81-
82-
Follow the prompts to release.
83-
8475
[all-contributors]: https://github.com/all-contributors/all-contributors
8576
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
8677
[eslint]: https://eslint.org/

0 commit comments

Comments
 (0)