Skip to content

Commit ad8fb4d

Browse files
committed
Update dependencies and switch to pnpm
1 parent 5ed783f commit ad8fb4d

11 files changed

+6582
-12338
lines changed

.github/CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
#### Setup
1818

19-
This project requires [npm](https://nodejs.org/en/) ad [node](https://nodejs.org/en/).
19+
This project requires [pnpm](https://pnpm.io) and [node](https://nodejs.org/en/).
2020

21-
1. Fork this repo on [github](https://github.com/Simonwep/selection).
22-
2. Clone locally.
23-
3. From your local repro run `npm install`.
24-
4. Run `npm start dev`.
21+
1. Fork this repo on [GitHub](https://github.com/Simonwep/selection).
22+
2. Check out the master locally.
23+
3. From your local repro run `pnpm install`.
24+
4. Run `pnpm start dev`.

.github/workflows/main.yml

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
name: CI
1+
name: Main
22

33
on: ["push", "pull_request"]
44

55
jobs:
66
build:
7+
name: Build, test and eventually publish
78
runs-on: ubuntu-latest
89
env:
910
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1011
steps:
1112
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
13+
- uses: pnpm/action-setup@v2
1314
with:
14-
node-version: 18
15+
version: 8
1516

16-
- name: Restore cache
17-
uses: actions/cache@v3
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
1819
with:
19-
path: |
20-
node_modules
21-
packages/*/node_modules
22-
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
20+
node-version: 18
21+
cache: 'pnpm'
2322

24-
- name: Install
25-
run: npm ci
23+
- name: Install dependencies
24+
run: pnpm install
2625

2726
- name: Lint
28-
run: npm run lint
27+
run: pnpm run lint
2928

3029
- name: Build
31-
run: npm run build
30+
run: pnpm run build
31+
32+
- name: Publish
33+
if: startsWith(github.event.ref, 'refs/tags/v')
34+
run: npx lerna publish from-package --yes

.github/workflows/release.yml

-27
This file was deleted.

lerna.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"version": "3.2.7",
3-
"useWorkspaces": true,
4-
"packages": [
5-
"packages/*"
6-
]
3+
"npmClient": "pnpm"
74
}

0 commit comments

Comments
 (0)