Skip to content

Commit

Permalink
chore: migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Dec 12, 2024
1 parent 4a29bce commit 95a59ff
Show file tree
Hide file tree
Showing 9 changed files with 8,531 additions and 6,771 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,25 @@ jobs:
node: [14]

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- uses: actions/setup-node@v4

- name: checkout
uses: actions/checkout@v4

- name: cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: 📦 Install dependencies
run: pnpm install

- name: Lint
run: yarn lint
- name: 🔠 Lint project
run: pnpm lint

- name: Build
run: yarn build
- name: 🛠 Build project
run: pnpm build

- name: Test
run: yarn test:coverage
- name: 🧪 Test
run: pnpm test:coverage

- name: Coverage
- name: 🟩 Coverage
uses: codecov/codecov-action@v5
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ production or running a CI pipeline. That's why the message is
## Development

- Clone this repository
- Install dependencies using `yarn install` or `npm install`
- Install dependencies using `pnpm install`
- Run it manually `path/to/project/root/src/index.js path/to/package/you/want/to/try`
- Run tests with `npm t` or `yarn test`
- Run tests with `npm t` or `pnpm test`

## Inspiration

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"scripts": {
"build": "bili -t node --format cjs src/index.js",
"lint": "eslint src test",
"prepublish": "yarn build",
"prepublish": "pnpm build",
"release": "standard-version && git push --follow-tags && npm publish",
"test": "yarn lint && yarn test:coverage",
"test": "pnpm lint && pnpm test:coverage",
"test:ava": "nyc ava --verbose",
"test:coverage": "nyc --reporter=lcov --reporter=html ava"
},
Expand Down Expand Up @@ -45,5 +45,6 @@
"engines": {
"node": ">=8.17.0",
"npm": ">=5.10.0"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 95a59ff

Please sign in to comment.