Skip to content

Commit 9fa6524

Browse files
author
Michael Wittwer
committed
build(package-manager): replace yarn with npm
1 parent 6f70214 commit 9fa6524

File tree

15 files changed

+15880
-8656
lines changed

15 files changed

+15880
-8656
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,34 +48,34 @@ jobs:
4848
fetch-depth: 0
4949
# we need privileged access to publish to protected branch
5050
token: ${{ secrets.GH_TOKEN_PUBLIC_REPO }}
51-
# setup node and yarn cache
52-
- name: Setup Node and Yarn Cache
51+
# setup node and dependency cache
52+
- name: Setup Node and NPM Cache
5353
uses: actions/setup-node@v4
5454
with:
5555
node-version-file: .nvmrc
56-
cache: 'yarn'
57-
# yarn install
56+
cache: 'npm'
57+
# install dependencies
5858
- name: Install
59-
run: HUSKY=0 yarn --frozen-lockfile
59+
run: HUSKY=0 npm ci
6060
# build lint plugins before linting
6161
- name: Build lint plugins
62-
run: yarn build:lint:ci
62+
run: npm run build:lint:ci
6363
# lint
6464
- name: Lint
65-
run: yarn lint:ci
65+
run: npm run lint:ci
6666
# test
6767
- name: Test
68-
run: yarn test:ci
68+
run: npm run test:ci
6969
# build
7070
- name: Build
71-
run: yarn build:ci
71+
run: npm run build:ci
7272
# publish
7373
- name: Publish
7474
run: |
7575
npm config set //npm.pkg.github.com/:_authToken=$REGISTRY_TOKEN
7676
git config user.email "actions@github.com"
7777
git config user.name "Github Actions"
78-
yarn publish-libs
78+
npm run publish-libs
7979
env:
8080
GITHUB_CONTEXT: ${{ toJson(github) }}
8181
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Add a `.npmrc` file to the root of your project:
2020
```
2121

2222
## Quick Start
23-
* `yarn`
24-
* `yarn build`
23+
* `npm i`
24+
* `npm run build`
2525
* start developing
2626

2727

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": [
33
"packages/*"
44
],
5-
"npmClient": "yarn",
5+
"npmClient": "npm",
66
"useWorkspaces": true,
77
"version": "independent",
88
"command": {

0 commit comments

Comments
 (0)