Skip to content

Commit

Permalink
fix: drop Yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
homer0 committed Dec 27, 2022
1 parent 4df5a23 commit e41698c
Show file tree
Hide file tree
Showing 34 changed files with 25,706 additions and 8,156 deletions.
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -4,8 +4,6 @@

```bash
npm test
# or
yarn test
```

### TODOs
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -25,14 +25,14 @@ jobs:
- name: Install dependencies
env:
HUSKY_SKIP_INSTALL: 1
run: yarn --frozen-lockfile
- run: yarn build
run: npm ci
- run: npm run build
- name: Configure Git User
run: |
git config --global user.name '@homer0'
git config --global user.email 'homer0@users.noreply.github.com'
- name: Tag versions
run: yarn lerna version --conventional-commits --yes
run: npx lerna version --conventional-commits --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Authenticate with Registry
Expand All @@ -42,6 +42,6 @@ jobs:
- name: Make releases
run: |
npm config set access public
yarn lerna publish from-git --concurrency 1
npx lerna publish from-git --concurrency 1
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -14,10 +14,10 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn lint:all
- run: yarn test
- run: npm ci
- run: npm run build
- run: npm run lint:all
- run: npm test
- name: Coveralls (unit) for public/prettier-plugin-jsdoc
if: ${{ matrix.node == '16' }}
uses: coverallsapp/github-action@master
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -4,7 +4,6 @@ coverage-e2e
coverage-unit
.DS_Store
npm-debug.log
yarn-error.log
dist
/docs
/esm
Expand Down
3 changes: 1 addition & 2 deletions .husky/commit-msg
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/../utils/scripts/require-yarn"

yarn commitlint --edit $1
npx commitlint --edit $1
3 changes: 1 addition & 2 deletions .husky/post-merge
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/../utils/scripts/require-yarn"

yarn
npm ci
3 changes: 1 addition & 2 deletions .husky/pre-commit
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/../utils/scripts/require-yarn"

yarn run lint
npm run lint
3 changes: 1 addition & 2 deletions .husky/pre-push
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/../utils/scripts/require-yarn"

yarn types:check && yarn test
npm run types:check && npm test
7 changes: 2 additions & 5 deletions lerna.json
@@ -1,8 +1,5 @@
{
"packages": [
"packages/public/*",
"packages/personal/*"
],
"packages": ["packages/public/*", "packages/personal/*"],
"version": "independent",
"command": {
"publish": {
Expand All @@ -14,6 +11,6 @@
"allowBranch": "main"
}
},
"npmClient": "yarn",
"npmClient": "npm",
"useWorkspaces": true
}

0 comments on commit e41698c

Please sign in to comment.