Skip to content

Commit 03305d7

Browse files
committed
chore: migrate to pnpm
1 parent 2aa09e3 commit 03305d7

File tree

5 files changed

+3630
-4576
lines changed

5 files changed

+3630
-4576
lines changed

Diff for: .github/workflows/build.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: build
22

33
on:
44
push:
5-
branches:
6-
- master
5+
branch: master
76
paths:
87
- src/counter.dev-dark.user.css
98
pull_request:
@@ -12,10 +11,23 @@ jobs:
1211
build:
1312
runs-on: ubuntu-latest
1413
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 9
21+
run_install: true
22+
23+
- name: Install Node.js
24+
uses: actions/setup-node@v4
1725
with:
1826
node-version: "20"
19-
- run: npm ci
20-
- run: npm run lint:all
21-
- run: npm run build
27+
cache: pnpm
28+
29+
- name: Run linters
30+
run: pnpm run lint:all
31+
32+
- name: Run build
33+
run: pnpm run build

Diff for: README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ Anyone and everyone is welcome to [contribute](https://github.com/VChet/counter.
2424

2525
1. [Fork](https://github.com/VChet/counter.dev-dark/fork) and download this repository
2626
1. Install [Node.js](https://nodejs.org/)
27-
1. Install all dependencies using `npm install`
27+
1. Install [pnpm](https://pnpm.io/) `npm i pnpm -g`
28+
1. Install all dependencies using `pnpm install`
2829
1. Change [mappings](generate.js)
29-
1. Generate style with `npm run generate`
30+
1. Generate style with `pnpm run build`
3031
1. Make additional changes in [main style](./src/counter.dev-dark.user.css) if needed
3132
1. Commit and push your changes
3233
1. Make a pull request

0 commit comments

Comments
 (0)