Skip to content

Commit

Permalink
Update dependencies and switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Jul 21, 2023
1 parent 5ed783f commit eb20f20
Show file tree
Hide file tree
Showing 11 changed files with 6,582 additions and 12,335 deletions.
10 changes: 5 additions & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#### Setup

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

1. Fork this repo on [github](https://github.com/Simonwep/selection).
2. Clone locally.
3. From your local repro run `npm install`.
4. Run `npm start dev`.
1. Fork this repo on [GitHub](https://github.com/Simonwep/selection).
2. Check out the master locally.
3. From your local repro run `pnpm install`.
4. Run `pnpm start dev`.
29 changes: 16 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
name: CI
name: Main

on: ["push", "pull_request"]

jobs:
build:
name: Build, test and eventually publish
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 18
version: 8

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

- name: Install
run: npm ci
- name: Install dependencies
run: pnpm install

- name: Lint
run: npm run lint
run: pnpm run lint

- name: Build
run: npm run build
run: pnpm run build

- name: Publish
if: startsWith(github.event.ref, 'refs/tags/v')
run: npx lerna publish from-package --yes
27 changes: 0 additions & 27 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "3.2.7",
"useWorkspaces": true,
"npmClient": "pnpm",
"packages": [
"packages/*"
]
Expand Down
Loading

0 comments on commit eb20f20

Please sign in to comment.