Skip to content

Commit

Permalink
chore(deps): migrate from npm to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammed-Rahif committed Dec 1, 2024
1 parent f613417 commit a2d6bde
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 16,678 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,31 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.14

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

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

- name: Check linting and errors
run: |
npm run lint
npm run check
pnpm run lint
pnpm run check
- name: Deploy with gh-pages
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy
pnpm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,28 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.14

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

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

- name: Run Prettier
run: |
npm run format
pnpm run format
- name: Check linting and errors
run: |
npm run lint
npm run check
pnpm run lint
pnpm run check
- name: Commit changes
run: |
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ jobs:
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.14

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -52,12 +58,12 @@ jobs:
workspaces: './src-tauri -> target'

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

- name: Check linting and errors
run: |
npm run lint
npm run check
pnpm run lint
pnpm run check
- name: Update version declarations
env:
Expand All @@ -66,7 +72,7 @@ jobs:
npx semantic-release --dry-run
- name: Build Tauri
run: npm run tauri build ${{ matrix.args }}
run: pnpm run tauri build ${{ matrix.args }}

- name: Move artifacts to outputs
run: |
Expand Down Expand Up @@ -111,13 +117,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.14

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 20
cache: 'pnpm'

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

- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"command": "npm run dev",
"command": "pnpm run dev",
"name": "Run run dev",
"request": "launch",
"type": "node-terminal"
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ To get a local copy up and running follow these steps.

### Prerequisites

- [Node.js with npm](https://nodejs.org/en/download/)
- [Node.js](https://nodejs.org/en/download/)
- [Pnpm](https://pnpm.io/installation)

### Installation

Expand All @@ -126,9 +127,9 @@ _Below is how to install and set up the app._
```sh
cd Notpad
```
1. Install npm packages
1. Install packages
```sh
npm install
pnpm install
```

### Running the project
Expand All @@ -137,14 +138,14 @@ _Below is how to install and set up the app._

- Svelte:
```sh
npm run dev
pnpm run dev
```

#### Preview:

```sh
npm run build
npm run preview
pnpm run build
pnpm run preview
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>
Expand Down
Loading

0 comments on commit a2d6bde

Please sign in to comment.