Skip to content

Commit

Permalink
move to pnpm (#101)
Browse files Browse the repository at this point in the history
* chore: add npmrc

* chore: migrate to pnpm

* ci: update workflows to use pnpm

* chore: add badges

* chore: update lock file
  • Loading branch information
ShiiRochi authored Jul 17, 2024
1 parent 87041dc commit 338b5bb
Show file tree
Hide file tree
Showing 9 changed files with 15,137 additions and 21,000 deletions.
19 changes: 10 additions & 9 deletions .github/actions/install_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ description: 'Install node modules'
runs:
using: 'composite'
steps:
- name: Yarn Cache
uses: actions/cache@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
path: '/node_modules/**'
key: node-modules-${{ hashFiles('**/package-lock.json') }}
version: 9

- name: Install
shell: bash
run: npm ci
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Yarn Install Peer
- name: Install dependencies
shell: bash
run: npm install wavesurfer.js
run: pnpm install
10 changes: 5 additions & 5 deletions .github/workflows/deploy_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Lint
run: |
npm run lint
pnpm run lint
deploy:
needs: [ lint ]
runs-on: ubuntu-latest
Expand All @@ -34,23 +34,23 @@ jobs:

- name: Build
run: |
npm run build
pnpm run build
# вложить дистрибутив в папку с демо по правильному пути
- name: Move dist
run: |
npm run demo:sync
pnpm run demo:sync
- name: Install demo dependencies
run: |
cd ./demo && npm ci
- name: Build demo
run: |
npm run build:demo
pnpm run build:demo
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: demo-dist
path: demo/build
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Wavesurfer React

[![minified](https://badgen.net/bundlephobia/min/wavesurfer-react)](https://bundlephobia.com/package/wavesurfer-react)
[![minzipped](https://badgen.net/bundlephobia/minzip/wavesurfer-react)](https://bundlephobia.com/package/wavesurfer-react)
[![downloads](https://badgen.net/npm/dw/wavesurfer-react)](https://npmjs.com/package/wavesurfer-react)

A simple wrapper around an awesome library called [wavesurfer.js](https://wavesurfer-js.org).

The purpose of the package is to provide an abstraction over wavesurfer.js API
Expand Down
Loading

0 comments on commit 338b5bb

Please sign in to comment.